On Feb 13, 2:55 am, Mark Nottingham <m...@mnot.net> wrote: > 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...
Isaacs, Mark, I would prefer something that does not add a property to the res object. Maybe res.writeHead(123, {'Date': undefined}) could override it? - Bert