Rob Wu
024d540e7c
Fix test expectations for xfwd
2015-05-06 19:46:58 +02:00
Rob Wu
2d84862546
Upgrade http-proxy to 1.11.1
...
All xfwd and tests fails with this change, but that's because the
tests themselves were incorrect (using port 80/443 instead of the
ephemeral ports created for the tests).
2015-05-06 19:19:21 +02:00
Rob Wu
f98705f27b
Add test for proxy error
2015-05-06 18:40:04 +02:00
Rob Wu
e8202aa31f
Add more xfwd tests (https+http & http+https)
2015-05-06 18:20:11 +02:00
Rob Wu
056cb446fe
x-forwarded-port should match the request port.
...
Not the proxied one. These tests will now fail, but that's because
the current implementation is apparently incorrect.
2015-05-06 12:08:53 +02:00
Rob Wu
80da247827
Add httpsOptions option to create https.Server
...
Note: This does not work with the current version of node-http-proxy
and node 0.12.0 because req.connection.pair is not defined.
2015-05-06 12:07:31 +02:00
Rob Wu
1ee157fc0f
Add unit tests
2015-05-05 22:37:20 +02:00