Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jan 4, 2012
  1. @dougwilson

    Skip compression on HEAD requests.

    dougwilson authored
    With this middleware enabled, every HEAD request that matches the
    filters will cause the following warning to be printed:
    
        This type of response MUST NOT have a body. Ignoring write() calls.
    
    This checks that `req.method !== 'HEAD'` before compressing. This
    is a simple fix and matches the future compress middleware that is
    going to be included with connect.
Commits on Nov 6, 2011
  1. fix race condition

    authored
Commits on Sep 27, 2011
  1. Fix global variable bug

    authored
Commits on Sep 26, 2011
  1. @marcenuc @respectTheCode

    sys module is not used in gzip.js

    marcenuc authored respectTheCode committed
Commits on Sep 23, 2011
  1. @respectTheCode

    fixes requested by @nateps

    respectTheCode authored
  2. @shimondoodkin @respectTheCode
  3. @respectTheCode

    Merge branch 'master' of https://github.com/nateps/connect-gzip

    respectTheCode authored
    Conflicts:
    	.gitignore
    	lib/staticGzip.js
  4. @respectTheCode
  5. @respectTheCode

    fix semicolons

    respectTheCode authored
Commits on Sep 22, 2011
Commits on Apr 26, 2011
  1. Use a more sane filename structure for gzipped files. This is now pos…

    authored
    …sible with Connect 1.4.0, which now won't overwrite the Content-Type header based on the file extension if Content-Type is already set.
Commits on Apr 24, 2011
  1. Add potentially malicious file path detection (don't allow any paths …

    authored
    …containing '..'). Also, add the appropriate Content-Type header before passing off to the static provider. Right now, the static provider will just overrite this, but once that is fixed, then it will be possible to name files with the more standard file.ext.gz instead of gz.file.ext format being used now.
Commits on Apr 23, 2011
  1. Refactored tests and improved the coverage a lot. Made sure that gzip…

    authored
    … middleware now works with various ways of setting headers and writing to the response. Had to make a small change to expresso to support requests for binary files.
Commits on Apr 22, 2011
  1. Fixed gzip middleware to actually work and updated tests. Removed the…

    authored
    … version based on compress.js, since it mostly duplicated functionality.
Commits on Apr 20, 2011
Commits on Apr 10, 2011
  1. Fixed some bugs in staticGzip including tests for a directory path an…

    authored
    …d making sure the request works correctly when the gzip file is not made.
  2. Reworked staticGzip to use the connect.static send method. This takes…

    authored
    … advantage of any features in that library, including 304 support and max-age.
Commits on Apr 9, 2011
Something went wrong with that request. Please try again.