lloyd / connect-etagify

etagify is connect middleware to add ETag headers to cachable but non-static content.
49 stars 6 forks source link

Fix check for `ETag` header (instead of setting it). #10

Open yungsters opened 10 years ago

yungsters commented 10 years ago

res.header() sets the header instead of getting it. The current implementation generates the following HTTP response:

HTTP/1.1 200 OK
0: E
1: T
2: a
3: g
X-Powered-By: Express
[...]
analytically commented 10 years ago

+1