Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

[minor] Don't set `Date` header #42

Merged
merged 1 commit into from

2 participants

@mmalecki
Collaborator

node.js core does that already in more efficient way, as seen in
lib/http.js.

@mmalecki mmalecki [minor] Don't set `Date` header
node.js core does that already in more efficient way, as seen in
`lib/http.js`.
8ea2d28
@jfhbrook jfhbrook merged commit 3ed40a7 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 7, 2012
  1. @mmalecki

    [minor] Don't set `Date` header

    mmalecki authored
    node.js core does that already in more efficient way, as seen in
    `lib/http.js`.
This page is out of date. Refresh to see the latest.
Showing with 0 additions and 1 deletion.
  1. +0 −1  lib/ecstatic.js
View
1  lib/ecstatic.js
@@ -25,7 +25,6 @@ var ecstatic = module.exports = function (dir, options) {
// Set common headers.
res.setHeader('server', 'ecstatic-'+version);
- res.setHeader('date', (new Date()).toUTCString());
if (file.slice(0, root.length) !== root) {
return status[403](res, next);
Something went wrong with that request. Please try again.