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

http-forward

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-forward - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

5

index.js

@@ -11,6 +11,3 @@ var HttpProxy = require('http-proxy')

proxy.once('proxyRes', function (proxyRes, req, res) {
if (proxyRes.statusCode >= 400) {
return error(null, proxyRes)
}
success()
success(proxyRes)
})

@@ -17,0 +14,0 @@

2

package.json
{
"name": "http-forward",
"description": "Simple proxy forward for incoming HTTP request",
"version": "0.1.0",
"version": "0.1.1",
"repository": "h2non/http-forward",

@@ -6,0 +6,0 @@ "author": "Tomas Aparicio",

@@ -22,4 +22,5 @@ const http = require('http')

req.forward = { target: target }
forward(req, res, function (err) {
forward(req, res, function (err, res) {
assert.equal(err, undefined)
assert.equal(res.statusCode, 200)
})

@@ -26,0 +27,0 @@ }

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