Update http.js

This commit is contained in:
Namhyeon Go 2022-05-30 20:19:46 +09:00 committed by GitHub
parent 5a2bf30b38
commit b93cac5e76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -598,8 +598,7 @@ var HTTPObject = function(engine) {
try { try {
var variables = (typeof(variables) !== "undefined") ? variables : {}; var variables = (typeof(variables) !== "undefined") ? variables : {};
for (var k in variables) for (var k in variables)
this.setVariable(k, variables[k]) this.setVariable(k, variables[k]);
;
} catch (e) { } catch (e) {
console.error("HTTPObject.setVariables() ->", e.message); console.error("HTTPObject.setVariables() ->", e.message);
} }
@ -610,7 +609,10 @@ var HTTPObject = function(engine) {
var str = String(str); var str = String(str);
var Lpos = str.indexOf('{'); var Lpos = str.indexOf('{');
var Rpos = str.indexOf('}', Lpos + 1); var Rpos = str.indexOf('}', Lpos + 1);
var s0 = '', s1 = [], s2 = null, s3, s4; var s0 = '',
s1 = [],
s2 = null,
s3, s4;
while (Lpos > -1 && Rpos > -1) { while (Lpos > -1 && Rpos > -1) {
s0 = str.substring(Lpos + 1, Rpos); s0 = str.substring(Lpos + 1, Rpos);