Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Updated gzip example
- Loading branch information
1 parent
d73d22f
commit 879c3de
Showing
3 changed files
with
24 additions
and
11 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env node | ||
(function () { | ||
'use strict'; | ||
|
||
var connect = require('connect'), | ||
compressor = require('compressor'), | ||
squish = require('../lib/squish'), | ||
port = 2200; | ||
|
||
connect( | ||
squish('gzip', compressor.GzipStream), | ||
connect.static('./public') | ||
).listen(port, function () { | ||
console.log('Server on port ' + port); | ||
}); | ||
}()); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<html> | ||
<head> | ||
<title>Yay, it worked</title> | ||
</head> | ||
<body> | ||
This HTML file came across compressed. Isn't that neat? | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.