fast-proxy
Advanced tools
Comparing version 1.6.2 to 1.6.3
@@ -112,6 +112,8 @@ 'use strict' | ||
// set origin response code | ||
res.statusCode = statusCode | ||
if (onResponse) { | ||
onResponse(req, res, stream) | ||
} else { | ||
res.statusCode = statusCode | ||
pump(stream, res) | ||
@@ -118,0 +120,0 @@ } |
{ | ||
"name": "fast-proxy", | ||
"version": "1.6.2", | ||
"version": "1.6.3", | ||
"description": "Forward your HTTP request to another server.", | ||
@@ -37,16 +37,16 @@ "main": "index.js", | ||
"devDependencies": { | ||
"0http": "^2.2.4", | ||
"0http": "^2.5.2", | ||
"body-parser": "^1.19.0", | ||
"chai": "^4.2.0", | ||
"fastify": "^2.13.1", | ||
"fastify": "^2.15.1", | ||
"fastify-reply-from": "^2.1.0", | ||
"follow-redirects": "^1.11.0", | ||
"h2url": "^0.2.0", | ||
"http-proxy": "^1.18.0", | ||
"mocha": "^7.1.1", | ||
"http-proxy": "^1.18.1", | ||
"mocha": "^7.2.0", | ||
"nock": "^12.0.3", | ||
"nyc": "^15.0.1", | ||
"nyc": "^15.1.0", | ||
"pem": "^1.14.4", | ||
"restana": "^4.3.2", | ||
"standard": "^14.3.3", | ||
"restana": "^4.6.1", | ||
"standard": "^14.3.4", | ||
"supertest": "^4.0.2" | ||
@@ -58,5 +58,5 @@ }, | ||
"semver": "^7.3.2", | ||
"tiny-lru": "^7.0.2", | ||
"undici": "^0.5.0" | ||
"tiny-lru": "^7.0.6", | ||
"undici": "^1.0.3" | ||
} | ||
} |
# fast-proxy | ||
[![NPM version](https://img.shields.io/npm/v/fast-proxy.svg?style=flat)](https://www.npmjs.com/package/fast-proxy) | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/fastify/fast-proxy.svg)](https://greenkeeper.io/) | ||
Node.js framework agnostic library that enables you to forward an http request to another HTTP server. | ||
@@ -6,0 +5,0 @@ Supported protocols: HTTP, HTTPS, HTTP2 |
18073
352
167
+ Addedundici@1.3.1(transitive)
- Removedfastq@1.17.1(transitive)
- Removedhttp-parser-js@0.5.8(transitive)
- Removedinherits@2.0.4(transitive)
- Removedlistenercount@1.0.1(transitive)
- Removedprocess-nextick-args@1.0.7(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedretimer@2.0.0(transitive)
- Removedreusify@1.0.4(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedsyncthrough@0.5.0(transitive)
- Removedundici@0.5.0(transitive)
- Removedutil-deprecate@1.0.2(transitive)
Updatedtiny-lru@^7.0.6
Updatedundici@^1.0.3