mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 05:31:03 +00:00
Update http.js
This commit is contained in:
parent
8f6859ceae
commit
80711da772
|
@ -352,7 +352,7 @@ var HTTPObject = function(engine) {
|
||||||
var state = this.states[this.states.length - 1];
|
var state = this.states[this.states.length - 1];
|
||||||
var cmd = ["bin\\curl", "-X", this.method];
|
var cmd = ["bin\\curl", "-X", this.method];
|
||||||
|
|
||||||
if (this.headers.length > 0) {
|
if (Object.keys(this.headers).length > 0) {
|
||||||
for (var key in this.headers) {
|
for (var key in this.headers) {
|
||||||
var value = this.headers[key];
|
var value = this.headers[key];
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user