Skip to content

Commit ead0468

Browse files
committed
Fix in handling of "sync specifier in NewHttpRequest
1 parent c3b9b3b commit ead0468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/JSRootCore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@
861861
if (!kind) kind = "buf";
862862

863863
var pthis = this, method = "GET", async = true, p = kind.indexOf(";sync");
864-
if (p>0) { kind.substr(0,p); async = false; }
864+
if (p>0) { kind = kind.substr(0,p); async = false; }
865865
if (kind === "head") method = "HEAD"; else
866866
if ((kind === "post") || (kind === "multi") || (kind === "posttext")) method = "POST";
867867

0 commit comments

Comments
 (0)