mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 05:06:04 +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 {
|
||||
var variables = (typeof(variables) !== "undefined") ? variables : {};
|
||||
for (var k in variables)
|
||||
this.setVariable(k, variables[k])
|
||||
;
|
||||
this.setVariable(k, variables[k]);
|
||||
} catch (e) {
|
||||
console.error("HTTPObject.setVariables() ->", e.message);
|
||||
}
|
||||
|
@ -610,7 +609,10 @@ var HTTPObject = function(engine) {
|
|||
var str = String(str);
|
||||
var Lpos = str.indexOf('{');
|
||||
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) {
|
||||
s0 = str.substring(Lpos + 1, Rpos);
|
||||
|
@ -750,7 +752,7 @@ var HTTPObject = function(engine) {
|
|||
|
||||
console.warn("Existing proxy settings will be reset.");
|
||||
|
||||
switch(_debugger) {
|
||||
switch (_debugger) {
|
||||
case "FIDDLER":
|
||||
this.proxy = {
|
||||
"enabled": true,
|
||||
|
|
Loading…
Reference in New Issue
Block a user