mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-11 20:21: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 cmd = ["bin\\curl", "-X", this.method];
|
||||
|
||||
if (this.headers.length > 0) {
|
||||
if (Object.keys(this.headers).length > 0) {
|
||||
for (var key in this.headers) {
|
||||
var value = this.headers[key];
|
||||
if (value != null) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user