Why not just set the date header to null? Seems more intuitive to me.

Am 13.02.2012 02:55 schrieb "Mark Nottingham" <[email protected]>:

I've updated my patch. It already has an undocumented way to disable; e.g.,

var server = http.createServer(function(req, res) {
  res.shouldSendDate = false;
  res.writeHead(200, {
    'Content-Type' : 'text/plain',
  });
  res.end("foo!");
});

Is that adequate? It's similar to the undocumented half close stuff;
servers don't have an options parameter...

Reply via email to