Comparing version 4.1.3 to 4.1.4-beta
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97204
1732
2