Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node gzip #475

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Node gzip #475

wants to merge 5 commits into from

Conversation

jacksonic
Copy link
Member

Added node gzip functionality for file transfer handlers, if accept-encoding allows (which is almost always will). Also converted a few existing properties to NodeRequireProperty.

@@ -47,10 +57,23 @@ CLASS({
if ( this.url.parse(req.url).pathname !== this.pathname ) return false;

this.fs.readFile(this.file, function(err, data) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be better to restructure this as

this.fs.createReadStream(this.file) similar to the StaticFileHandler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants