New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

http-proxy-404

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-proxy-404 - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"name": "http-proxy-404",
"version": "0.2.0",
"version": "0.2.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -10,2 +10,3 @@ const express = require('express');

var app = express();
const regHttps = /^https/;
const httpAgent = new http.Agent({

@@ -64,7 +65,8 @@ rejectUnauthorized: false,

while(i<this.options.targetList.length) {
var isHttps = regHttps.test(this.options.targetList[i])
let result = await axios({
url: this.options.targetList[i] + req.url,
method: req.method,
httpAgent: httpAgent,
httpsAgent: httpsAgent
httpAgent: isHttps ? httpAgent : null,
httpsAgent: isHttps ? httpsAgent : null
})

@@ -71,0 +73,0 @@ if (result !== 404) {

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