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

gohttp

Package Overview
Dependencies
Maintainers
0
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gohttp - npm Package Compare versions

Comparing version 5.1.1 to 5.1.2

29

http2proxy.js

@@ -208,7 +208,9 @@ 'use strict'

let backend_obj = null
let tmp_cfg
for (let k in cfg) {
tmp_cfg = Array.isArray(cfg[k]) ? cfg[k] : [ cfg[k] ]
for (let i = 0; i < cfg[k].length; i++) {
tmp = cfg[k][i]
for (let i = 0; i < tmp_cfg.length; i++) {
tmp = tmp_cfg[i]

@@ -360,3 +362,3 @@ if (!this.checkConfig(tmp, k)) continue

if (self.full) {
return c.send(error_502_text, 502)
return c.status(502).send(error_502_text)
}

@@ -372,4 +374,17 @@

if (pr === null)
return c.send(error_503_text, 503)
if (pr === null) {
await c.ext.delay(5)
pr = self.getBackend(c, host)
if (!pr) {
await c.ext.delay(15)
pr = self.getBackend(c, host)
if (!pr) {
await c.ext.delay(30)
pr = self.getBackend(c, host)
}
}
if (!pr) return c.status(503).send(error_503_text)
}
}

@@ -458,3 +473,3 @@

self.debug && console.error(err)
c.send(error_503_text, 503)
c.status(503).send(error_503_text)
}

@@ -466,3 +481,3 @@

HiiProxy.prototype.init =function (app) {
HiiProxy.prototype.init = function (app) {
app.config.timeout = this.timeout

@@ -469,0 +484,0 @@

{
"name": "gohttp",
"version": "5.1.1",
"version": "5.1.2",
"description": "http & https client for HTTP/1.1 and HTTP/2",

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

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