On Tue, Feb 7, 2012 at 1:30 PM, Isaac Schlueter <[email protected]> wrote:
> I don't know... I kind of see this as somewhat similar to defaulting
> to sending the Host header on requests.
>
> As long as there's some way to opt out of it, the default should make
> node servers behave the right way.  Maybe you can set the date header
> to null if you want to not send the date?
>
>> It's pretty easy to break the spec. Do you really want node ensuring we
>> never serve invalid HTTP? That seems like a fool's errand.
>
> Sure, but if it's easy to be more valid more of the time, then that
> seems reasonable.
>
> Martin, wanna try a patch for this?

Pull request #311 has a solution for this:

https://github.com/joyent/node/pull/311

If people are happy with that, and we just need a newer version
against current code, I can certainly create a new one with the same
changes. It looks like opting out can be done by setting
shouldSendDate to false up front.

--
Martin Cooper

Reply via email to