test: add test for 06cfff9 regression
authorBrendan Ashworth <brendan.ashworth@me.com>
Sat, 18 Apr 2015 20:26:15 +0000 (13:26 -0700)
committerBrendan Ashworth <brendan.ashworth@me.com>
Sat, 18 Apr 2015 21:25:52 +0000 (14:25 -0700)
commit6bf85bc81e7e61b4126c50d05555d5928343423b
treeee251af56d5a0d36525d22cbc6762b9d1dcf18f1
parent718059777c6eb41d930db787eec8748ab35f7deb
test: add test for 06cfff9 regression

This commit adds a test to ensure all options are NOT modified after
passing them to http.request. Specifically options.host and options.port
are the most prominent that would previously error, but add the other
options that have default values.

options.host and options.port were overridden for the one-argument
net.createConnection(options) call.

PR-URL: https://github.com/iojs/io.js/pull/1467
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
test/parallel/test-http-request-dont-override-options.js [new file with mode: 0644]