Maciej Małecki
f79f3adf02
[test] Add core test-http-head-response-has-no-body test
...
Modifications:
* make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:19 +01:00
Maciej Małecki
f298411f76
[test] Add core test-http-host-headers test
...
Modifications:
* make client connect to `PROXY_PORT` instead of `PORT`
* remove https part
* change assertion to match `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:19 +01:00
Maciej Małecki
5ac987857c
[test] Add core test-http-client-upload-buf test
...
Modifications:
* make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
f1c0be3f0b
[test] Add core test-http-response-close test
...
Modifications:
* make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
7bf8d4a7be
[test] Add core test-http-client-abort test
...
Modifications:
* make client connect to `PROXY_PORT` instead of `PORT`
As off a95cf9bd63, this test doesn't hang.
2011-12-18 22:49:18 +01:00
Maciej Małecki
4d43d81e5c
[fix] When client request is aborted, abort server request
2011-12-18 22:49:18 +01:00
Maciej Małecki
80c216df0c
[test] Add core test-http-eof-on-connect test
...
Modifications:
* make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
a6353897cd
[test] Add core test-http-malformed-request test
...
Modifications:
* make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
7648fe50c1
[test] Add core test-http-client-upload test
...
Modifications:
* make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
25a9e2d217
[test] Add core test-http test
...
Modifications:
* make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
60ff181af9
[test] Add core test-http-upload-timeout test
...
Modifications:
* make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
98bbe541e4
[test] Add core test-http-client-abort2 test
...
Modifications:
* make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
d7461f3206
[test] Add core test-http-chunked test
...
Modifications:
* make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
c0857f2d59
[test] Add core test-http-head-request test
...
Modifications:
* make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
b3b5cce3ae
[test] Add core test-http-set-cookies test
...
Modifications:
* make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
82060a5343
[test] Add core test-http-status-code test
...
Modifications:
* make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
31a8c6800d
[fix test] Make test runner exit after test exits
2011-12-18 22:49:18 +01:00
Maciej Małecki
87999d0288
[test] Add basic test runner
2011-12-18 22:49:18 +01:00
Maciej Małecki
543f214361
[test] Add common.js file from core
...
Modifications:
* add `PROXY_PORT` constant
2011-12-18 22:49:18 +01:00
Maciej Małecki
8ca5d83497
[docs] Little explanation for test/core directory
2011-12-18 22:49:17 +01:00
Maciej Małecki
63dfc7f175
[fix] In routing proxy, match line beginning
...
Previous approach failed in case of routing table like:
{
'domain.com': 'localhost:9000',
'a.domain.com': 'localhost:9001'
}
without `hostnameOnly`. When routing request to `a.domain.com`,
`RegExp` matched first entry (`domain.com`) and returned it.
2011-12-18 21:47:06 +01:00
Charlie Robbins
9f05e6c567
Merge pull request #165 from elfsternberg/master
...
Fix issue where front-end is HTTPS, back-end is HTTP, and server issues a redirect.
2011-12-13 22:21:51 -08:00
Charlie Robbins
d1b19a1205
Merge pull request #164 from elfsternberg/553e7fbc335a9befd166d472f057aa50452a9d40
...
Modified the ad-hoc proxy lookup to use _getKey(), rather than the error-prone in-line method.
2011-12-13 22:21:07 -08:00
indexzero
5b52c89694
[refactor] Updates to support http2 from @mikeal
...
Conflicts:
lib/node-http-proxy/http-proxy.js
2011-12-14 01:45:52 +01:00
Maciej Małecki
86b4122323
[v0.6] http.Agent uses different structure for sockets
2011-12-14 01:45:44 +01:00
Maciej Małecki
6655e01642
[v0.6] Don't use agent.appendMessage()
...
Instead, just perform a request.
2011-12-14 01:45:34 +01:00
Maciej Małecki
8d701bb20b
[example] Replace sys usages with util
2011-12-14 01:45:21 +01:00
Bradley Meck
e2dccbca48
Merge pull request #163 from samyakbhuta/master
...
Allows node-http-proxy to append new values to existing headers for incoming "x-forward-for","x-forward-proto" and "x-forward-port"
2011-12-08 14:07:21 -08:00
Marak Squires
f086692619
Merge branch 'master' of github.com:nodejitsu/node-http-proxy
2011-12-05 14:20:32 -08:00
Ken "Elf" Mathieu Sternberg
411bb51cc6
Fix issue where front-end is HTTPS, back-end is HTTP, and server issues a redirect.
...
This handles the case where a back-end web application such as Django or
Rails issues a redirect and automatically decorates the URL with the
protocol with which it was addressed. If the back-ends are internal and
HTTP-only, then they'll issue a URL with 'http://' as the protocol.
This must be fixed before leaving the proxy.
This also handles the (unusual) case where a back-end speaks only
https://, but the user is deploying node-http-proxy to make that service
available to non-SSL capable browsers. Works only with 301 and 302
codes.
2011-11-29 10:10:16 -08:00
Ken "Elf" Mathieu Sternberg
553e7fbc33
Modified the ad-hoc proxy lookup to use _getKey(), rather than the
...
error-prone in-line method.
_getKey() will look for options.target as well as
options.host:options.port, and so is useful for a segmented
proxy server where the destination proxies are not constructed before
first references.
2011-11-29 09:52:32 -08:00
Samyak Bhuta
621f9b425a
Allowing the common proxy headers' value to be appended in proxy chain scenarios.
2011-11-28 08:56:45 +00:00
Charlie McConnell
1e33434fcc
Revert "[dist] Adjusted engines field to allow for 0.6; version bump 0.7.7"
...
This reverts commit 30dac898f30a8508b4c4b4236e9438987f320167.
2011-11-26 10:10:24 -08:00
Charlie McConnell
30dac898f3
[dist] Adjusted engines field to allow for 0.6; version bump 0.7.7
2011-11-22 11:01:52 -08:00
Charlie McConnell
3ab02f3ad7
[fix] Fix incorrect depth check.
2011-11-16 19:15:51 -08:00
Max Ogden
c03a450d9b
simplify proxytable path segment rewrite logic
2011-11-16 19:15:51 -08:00
Cloud9
2061c71366
Revert "update outgoing.headers.host incase the destination does proxying"
...
This reverts commit 65b7872e6ad433deae4de823c63629cb341bd649.
2011-11-16 16:42:07 -08:00
Fabian Jakobs
d6ea3a425c
don't add upgrade handler if a custom handler is passed in
...
if a callback but no static proxy is defined and
no routes are provided then handlers.length is 1.
However the upgrade event is still automagically
attached in spite of having an explicit callback.
2011-11-16 16:40:51 -08:00
koichik
152d258ea0
[fix] Avoid Transfer-Encoding: chunked for HTTP/1.0 client, closes #59 .
2011-11-16 16:10:00 -08:00
Marak Squires
6a9751eb0d
Merge branch 'master' of github.com:nodejitsu/node-http-proxy
2011-11-16 15:19:01 -08:00
Camilo Aguilar
c98ccb40e9
Fixes memory leak when clients abort connections
2011-11-15 20:20:47 -05:00
Dominic Tarr
c5dc9295c7
bump version 0.7.6
2011-11-15 07:43:43 +11:00
Dominic Tarr
f27d26f451
changeOrigin option: set the host header to the proxy destination
2011-11-15 07:41:09 +11:00
Dominic Tarr
b4d41c3628
bump version 0.7.5
2011-11-11 12:27:49 +11:00
Dominic Tarr
65b7872e6a
update outgoing.headers.host incase the destination does proxying
2011-11-11 12:27:21 +11:00
Dominic Tarr
f004788098
Merge branch 'master' of github.com:nodejitsu/node-http-proxy
2011-11-10 17:00:30 +11:00
bradleymeck
dd8319972c
[example] Response modification middleware
2011-11-09 23:56:16 -06:00
Dominic Tarr
c60c6a27f6
Merge branch 'master' of github.com:nodejitsu/node-http-proxy
2011-11-10 16:45:39 +11:00
Dominic Tarr
3dfba2ba45
bump version 0.7.4
2011-11-10 16:44:49 +11:00
Dominic Tarr
182dcd3455
always emit end in 0.4
2011-11-10 16:44:23 +11:00