nateps/connect-gzip — pull request #11 by dougwilson (2012-01-04 19:22:23+00:00)
Title: Skip compression on HEAD requests.

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.