Comparing version 1.3.1 to 1.3.2
@@ -46,3 +46,3 @@ 'use strict'; | ||
if (name_split.length < 2) { return ''; } | ||
return `.${name_split[name_split.length - 1]}`; | ||
return name_split[name_split.length - 1]; | ||
}; | ||
@@ -49,0 +49,0 @@ |
/** | ||
* gohttp 1.3.1 | ||
* gohttp 1.3.2 | ||
* Copyright (c) [2019.08] BraveWang | ||
@@ -149,3 +149,5 @@ * This software is licensed under the MPL-2.0. | ||
postState.isUpload = true; | ||
postData = this.bodymaker.makeUploadData(opts.body); break; | ||
postData = this.bodymaker.makeUploadData(opts.body); | ||
opts.headers['content-type'] = postData['content-type']; | ||
break; | ||
default: | ||
@@ -152,0 +154,0 @@ postData.body = JSON.stringify(opts.body); |
{ | ||
"name": "gohttp", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "http client for HTTP/1.1", | ||
@@ -5,0 +5,0 @@ "main": "httpcli.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
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
17565
491