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.5 to 5.0.6-beta

34

gohttp.js

@@ -131,19 +131,2 @@ 'use strict';

case 'timeout':
case 'auth':
case 'method':
case 'encoding':
case 'dir':
case 'target':
case 'progress':
case 'body':
case 'rawBody':
case 'family':
case 'signal':
case 'key':
case 'cert':
case 'ca':
opts[k] = options[k];
break;
case 'query':

@@ -153,3 +136,4 @@ setOptsQuery(opts, options);

default: ;
default:
opts[k] = options[k];
}

@@ -697,3 +681,2 @@ }

function setOptions (opts, method, resetMethod = false) {
for (let k in this.urlobj) {

@@ -718,5 +701,12 @@ if (k === 'headers' || k === 'method' || k === 'path')

if (options && options.headers) {
for (let k in options.headers)
opts.headers[k] = options.headers[k];
if (options) {
if (options.headers) {
for (let k in options.headers)
opts.headers[k] = options.headers[k];
}
for (let k in options) {
if (k === 'headers') continue;
opts[k] = options[k];
}
}

@@ -723,0 +713,0 @@

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