mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 13:16:05 +00:00
Update http.js
This commit is contained in:
parent
5a2bf30b38
commit
b93cac5e76
10
lib/http.js
10
lib/http.js
|
@ -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);
|
||||||
|
@ -750,7 +752,7 @@ var HTTPObject = function(engine) {
|
||||||
|
|
||||||
console.warn("Existing proxy settings will be reset.");
|
console.warn("Existing proxy settings will be reset.");
|
||||||
|
|
||||||
switch(_debugger) {
|
switch (_debugger) {
|
||||||
case "FIDDLER":
|
case "FIDDLER":
|
||||||
this.proxy = {
|
this.proxy = {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user