http-proxy
Advanced tools
Comparing version 1.17.0 to 1.18.0
@@ -58,3 +58,3 @@ # Contributor Covenant Code of Conduct | ||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at <https://github.com/nodejitsu/node-http-proxy>. All | ||
reported by contacting the project team at <https://github.com/http-party/node-http-proxy>. All | ||
complaints will be reviewed and investigated and will result in a response that | ||
@@ -61,0 +61,0 @@ is deemed necessary and appropriate to the circumstances. The project team is |
@@ -40,5 +40,5 @@ // Use explicit /index.js to help browserify negociation in require '/lib/http-proxy' (!) | ||
* auth : Basic authentication i.e. 'user:password' to compute an Authorization header. | ||
* hostRewrite: rewrites the location hostname on (301/302/307/308) redirects, Default: null. | ||
* 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. | ||
* hostRewrite: rewrites the location hostname on (201/301/302/307/308) redirects, Default: null. | ||
* autoRewrite: rewrites the location host/port on (201/301/302/307/308) redirects based on requested host/port. Default: false. | ||
* protocolRewrite: rewrites the location protocol on (201/301/302/307/308) redirects to 'http' or 'https'. Default: null. | ||
* } | ||
@@ -45,0 +45,0 @@ * |
@@ -85,3 +85,3 @@ var httpNative = require('http'), | ||
req.headers['x-forwarded-host'] = req.headers['host'] || ''; | ||
req.headers['x-forwarded-host'] = req.headers['x-forwarded-host'] || req.headers['host'] || ''; | ||
}, | ||
@@ -88,0 +88,0 @@ |
{ | ||
"name": "http-proxy", | ||
"version": "1.17.0", | ||
"version": "1.18.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/nodejitsu/node-http-proxy.git" | ||
"url": "https://github.com/http-party/node-http-proxy.git" | ||
}, | ||
@@ -15,3 +15,3 @@ "description": "HTTP proxying for the masses", | ||
"dependencies": { | ||
"eventemitter3": "^3.0.0", | ||
"eventemitter3": "^4.0.0", | ||
"requires-port": "^1.0.0", | ||
@@ -21,21 +21,23 @@ "follow-redirects": "^1.0.0" | ||
"devDependencies": { | ||
"async": "^2.0.0", | ||
"concat-stream": "^1.6.2", | ||
"async": "^3.0.0", | ||
"auto-changelog": "^1.15.0", | ||
"concat-stream": "^2.0.0", | ||
"expect.js": "~0.3.1", | ||
"mocha": "^3.5.3", | ||
"nyc": "^11.7.1", | ||
"nyc": "^14.0.0", | ||
"semver": "^5.0.3", | ||
"socket.io": "^2.1.0", | ||
"socket.io-client": "^2.1.0", | ||
"sse": "0.0.6", | ||
"ws": "^0.8.0" | ||
"sse": "0.0.8", | ||
"ws": "^3.0.0" | ||
}, | ||
"scripts": { | ||
"mocha": "mocha test/*-test.js", | ||
"test": "nyc --reporter=text --reporter=lcov npm run mocha" | ||
"test": "nyc --reporter=text --reporter=lcov npm run mocha", | ||
"version": "auto-changelog -p && git add CHANGELOG.md" | ||
}, | ||
"engines": { | ||
"node": ">=4.0.0" | ||
"node": ">=6.0.0" | ||
}, | ||
"license": "MIT" | ||
} |
<p align="center"> | ||
<img src="https://raw.github.com/nodejitsu/node-http-proxy/master/doc/logo.png"/> | ||
<img src="https://raw.github.com/http-party/node-http-proxy/master/doc/logo.png"/> | ||
</p> | ||
# node-http-proxy [![Build Status](https://travis-ci.org/nodejitsu/node-http-proxy.svg?branch=master)](https://travis-ci.org/nodejitsu/node-http-proxy) [![codecov](https://codecov.io/gh/nodejitsu/node-http-proxy/branch/master/graph/badge.svg)](https://codecov.io/gh/nodejitsu/node-http-proxy) | ||
# node-http-proxy [![Build Status](https://travis-ci.org/http-party/node-http-proxy.svg?branch=master)](https://travis-ci.org/http-party/node-http-proxy) [![codecov](https://codecov.io/gh/http-party/node-http-proxy/branch/master/graph/badge.svg)](https://codecov.io/gh/http-party/node-http-proxy) | ||
@@ -48,3 +48,3 @@ `node-http-proxy` is an HTTP programmable proxying library that supports | ||
A new proxy is created by calling `createProxyServer` and passing | ||
an `options` object as argument ([valid properties are available here](lib/http-proxy.js#L22-L50)) | ||
an `options` object as argument ([valid properties are available here](lib/http-proxy.js#L26-L42)) | ||
@@ -141,3 +141,3 @@ ```javascript | ||
// and then proxy the request. | ||
proxy.web(req, res, { target: 'http://127.0.0.1:5060' }); | ||
proxy.web(req, res, { target: 'http://127.0.0.1:5050' }); | ||
}); | ||
@@ -180,3 +180,3 @@ | ||
proxy.web(req, res, { | ||
target: 'http://127.0.0.1:5060' | ||
target: 'http://127.0.0.1:5050' | ||
}); | ||
@@ -507,8 +507,8 @@ }); | ||
proxy.on('proxyRes', function (proxyRes, req, res) { | ||
var body = new Buffer(''); | ||
proxyRes.on('data', function (data) { | ||
body = Buffer.concat([body, data]); | ||
var body = []; | ||
proxyRes.on('data', function (chunk) { | ||
body.push(chunk); | ||
}); | ||
proxyRes.on('end', function () { | ||
body = body.toString(); | ||
body = Buffer.concat(body).toString(); | ||
console.log("res from proxied server:", body); | ||
@@ -541,3 +541,3 @@ res.end("my response to cli"); | ||
* Read carefully our [Code Of Conduct](https://github.com/nodejitsu/node-http-proxy/blob/master/CODE_OF_CONDUCT.md) | ||
* Read carefully our [Code Of Conduct](https://github.com/http-party/node-http-proxy/blob/master/CODE_OF_CONDUCT.md) | ||
* Search on Google/Github | ||
@@ -544,0 +544,0 @@ * If you can't find anything, open an issue |
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
231272
11
16
869
+ Addedeventemitter3@4.0.7(transitive)
- Removedeventemitter3@3.1.2(transitive)
Updatedeventemitter3@^4.0.0