Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

http-proxy

Package Overview
Dependencies
Maintainers
4
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-proxy - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

8

lib/http-proxy/common.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc