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.13.2 to 1.13.3

2

lib/http-proxy/index.js

@@ -1,2 +0,2 @@

var httpProxy = exports,
var httpProxy = module.exports,
extend = require('util')._extend,

@@ -3,0 +3,0 @@ parse_url = require('url').parse,

@@ -81,2 +81,4 @@ var http = require('http'),

});
req.headers['x-forwarded-host'] = req.headers['host'];
},

@@ -83,0 +85,0 @@

@@ -86,3 +86,3 @@ var url = require('url'),

if(proxyRes.headers[key] != undefined){
res.setHeader(key, proxyRes.headers[key]);
res.setHeader(String(key).trim(), proxyRes.headers[key]);
}

@@ -89,0 +89,0 @@ });

{
"name": "http-proxy",
"version": "1.13.2",
"version": "1.13.3",
"repository": {

@@ -9,6 +9,5 @@ "type": "git",

"description": "HTTP proxying for the masses",
"author": "Nodejitsu Inc. <info@nodejitsu.com>",
"author": "Charlie Robbins <charlie.robbins@gmail.com>",
"maintainers": [
"yawnt <yawnt@nodejitsu.com>",
"indexzero <charlie@nodejitsu.com>"
"jcrugzz <jcrugzz@gmail.com>"
],

@@ -15,0 +14,0 @@ "main": "index.js",

@@ -65,3 +65,3 @@ <p align="center">

An object will be returned with four values:
An object will be returned with four methods:

@@ -332,3 +332,3 @@ * web `req, res, [options]` (used for proxying regular HTTP(S) requests)

* **secure**: true/false, if you want to verify the SSL Certs
* **toProxy**: passes the absolute URL as the `path` (useful for proxying to proxies)
* **toProxy**: true/false, passes the absolute URL as the `path` (useful for proxying to proxies)
* **prependPath**: true/false, Default: true - specify whether you want to prepend the target's path to the proxy path

@@ -338,10 +338,10 @@ * **ignorePath**: true/false, Default: false - specify whether you want to ignore the proxy path of the incoming request (note: you will have to append / manually if required).

* **changeOrigin**: true/false, Default: false - changes the origin of the host header to the target URL
* **auth**: Basic authentication i.e. 'user:password' to compute an Authorization header.
* **auth**: Basic authentication i.e. 'user:password' to compute an Authorization header.
* **hostRewrite**: rewrites the location hostname on (301/302/307/308) redirects.
* **autoRewrite**: rewrites the location host/port on (301/302/307/308) redirects based on requested host/port. Default: false.
* **protocolRewrite**: rewrites the location protocol on (301/302/307/308) redirects to 'http' or 'https'. Default: null.
* **headers**: object with extra headers to be added to target requests.
* **headers**: object with extra headers to be added to target requests.
**NOTE:**
`options.ws` and `options.ssl` are optional.
**NOTE:**
`options.ws` and `options.ssl` are optional.
`options.target` and `options.forward` cannot both be missing

@@ -464,3 +464,3 @@

>
>Copyright (c) 2010 - 2016 Nodejitsu Inc.
>Copyright (c) 2010 - 2016 Charlie Robbins, Jarrett Cruger & the Contributors.
>

@@ -467,0 +467,0 @@ >Permission is hereby granted, free of charge, to any person obtaining a copy

Sorry, the diff of this file is not supported yet

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