Created
January 17, 2013 17:30
-
-
Save nebhale/4557765 to your computer and use it in GitHub Desktop.
Test case reproducing problems with gzipResponse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello World! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint node:true*/ | |
'use strict'; | |
var restify = require('restify'); | |
var server = restify.createServer(); | |
server.use(restify.gzipResponse()); | |
server.get('output.txt', restify.serveStatic({ | |
directory: '.' | |
})); | |
server.listen(8081, function() { | |
console.log('%s listening at %s', server.name, server.url); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment