http-proxy
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -144,3 +144,3 @@ var common = exports, | ||
args[lastIndex] = lastSegs[0]; | ||
args[lastIndex] = lastSegs.shift(); | ||
@@ -154,3 +154,3 @@ // | ||
return !!a; | ||
}).join('/').replace(/\/+/g, '/') | ||
}).join('/').replace(/\/+/g, '/').replace(/:\//g, '://') | ||
]; | ||
@@ -160,5 +160,7 @@ | ||
// on every request | ||
lastSegs[1] && retSegs.push(lastSegs[1]); | ||
// Handle case where there could be multiple ? in the URL. | ||
retSegs.push.apply(retSegs, lastSegs); | ||
return retSegs.join('?') | ||
}; |
{ | ||
"name" : "http-proxy", | ||
"version" : "1.7.0", | ||
"version" : "1.7.1", | ||
@@ -5,0 +5,0 @@ "repository" : { |
@@ -117,3 +117,8 @@ <p align="center"> | ||
``` | ||
#### Modify a response from a proxied server | ||
Sometimes when you have recieved a HTML/XML document from the server of origin you would like to modify it before forwarding it on. | ||
[Harmon](https://github.com/No9/harmon) allows you to do this in a streaming style so as to keep the pressure on the proxy to a minimum. | ||
#### Setup a stand-alone proxy server with proxy request header re-writing | ||
@@ -120,0 +125,0 @@ This example shows how you can proxy a request using your own HTTP server that |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36067
677
391