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

gohttp

Package Overview
Dependencies
Maintainers
1
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 4.1.3 to 4.1.4-beta

24

bodymaker.js

@@ -54,2 +54,7 @@ 'use strict';

'ttc' : 'font/ttc',
'xls' : 'application/vnd.ms-excel',
'gz' : 'application/x-gzip',
'zip' : 'application/zip',
'pdf' : 'application/pdf'
};

@@ -130,4 +135,4 @@

header_data = `Content-Disposition: form-data; `
+ `name=${'"'}${this.fmtName(k)}${'"'}; `
+ `filename=${'"'}${this.fmtFilename(t[i])}${'"'}`
+ `name="${this.fmtName(k)}"; `
+ `filename="${this.fmtFilename(t[i])}"`
+ `\r\nContent-Type: ${this.mimeType(t[i])}`;

@@ -164,3 +169,3 @@

for(let f in bodyfi) {
for (let f in bodyfi) {
seek += Buffer.from(bodyfi[f].payload).copy(bodyData, seek);

@@ -174,12 +179,2 @@ try {

/* await new Promise((rv, rj) => {
fs.read(fd, bodyData, seek, bodyfi[f].length, 0, (err, bytesRead, buffer) => {
if (err) {
rj(err);
} else {
seek += bytesRead;
rv(bytesRead);
}
});
}); */
} catch (err) {

@@ -189,5 +184,2 @@ throw err;

fh && fh.close && fh.close();
/* if (fd > 0) {
fs.close(fd, err => {});
} */
}

@@ -194,0 +186,0 @@ }

{
"name": "gohttp",
"version": "4.1.3",
"version": "4.1.4-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