Update http.js

This commit is contained in:
Namhyeon Go 2022-01-13 16:29:01 +09:00 committed by GitHub
parent 8f6859ceae
commit 80711da772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {