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

gohttp

Package Overview
Dependencies
Maintainers
1
Versions
136
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.0.3-beta to 5.0.3-beta2

22

http2proxy.js

@@ -369,13 +369,19 @@ 'use strict'

try {
if (pr.headers) {
for (let k in pr.headers) c.headers[k] = pr.headers[k]
}
await new Promise((rv, rj) => {
if (pr.headers) {
for (let k in pr.headers) c.headers[k] = pr.headers[k]
if (pr.rewrite) {
let rpath = pr.rewrite(c, c.headers[':path'])
if (rpath) {
let path_typ = typeof rpath
if (path_typ === 'object' && rpath.redirect) {
return c.setHeader('location', rpath.redirect)
} else if (path_typ === 'string') {
c.headers[':path'] = rpath
}
}
}
if (pr.rewrite) {
let rpath = pr.rewrite(c, c.headers[':path'])
if (rpath) c.headers[':path'] = rpath
}
await new Promise((rv, rj) => {

@@ -382,0 +388,0 @@ let stm = hii.session.request(c.headers)

{
"name": "gohttp",
"version": "5.0.3-beta",
"version": "5.0.3-beta2",
"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