http: don't confuse automatic headers for others
authorChristian Tellnes <christian@tellnes.no>
Fri, 13 Feb 2015 02:20:06 +0000 (03:20 +0100)
committerBrendan Ashworth <brendan.ashworth@me.com>
Sat, 28 Feb 2015 05:47:39 +0000 (21:47 -0800)
commit675cffb33e6d8b89672892b431c2ac4258f06593
tree43e824db166939a7ed9dace2a6539fa368277bf0
parent25da0742eea868e1a106a1a0dcb9e133365ffce2
http: don't confuse automatic headers for others

If you set a custom http header which includes eg. the string `Date`,
then http will not automatically send the `Date` header.

This is also true for other automatic http headers.

PR-URL: https://github.com/iojs/io.js/pull/828
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
lib/_http_outgoing.js
test/parallel/test-http-automatic-headers.js [new file with mode: 0644]
test/parallel/test-tls-over-http-tunnel.js