Fix more tests after 6478a375e3
This commit is contained in:
parent
6478a375e3
commit
11701f68a0
1 changed files with 13 additions and 8 deletions
|
@ -924,6 +924,7 @@ function setHTTPResponse(server, baseURL, response, responses, username, passwor
|
||||||
responseArray[1][i] = response.headers[i];
|
responseArray[1][i] = response.headers[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (username || password) {
|
||||||
server.respondWith(function (req) {
|
server.respondWith(function (req) {
|
||||||
if (username && req.username != username) return;
|
if (username && req.username != username) return;
|
||||||
if (password && req.password != password) return;
|
if (password && req.password != password) return;
|
||||||
|
@ -933,3 +934,7 @@ function setHTTPResponse(server, baseURL, response, responses, username, passwor
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
server.respondWith(response.method, baseURL + response.url, responseArray);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue