mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 9f3adfd2ca52 (bug 815299) for M4 bustage.
This commit is contained in:
parent
b571b2200a
commit
4c832dd2e9
@ -334,7 +334,4 @@ fetch(new Request('empty-header', {headers:{"emptyheader":""}}))
|
||||
}).then(function(body) {
|
||||
my_ok(body == "emptyheader", "The empty header was observed in the fetch event");
|
||||
finish();
|
||||
}, function(err) {
|
||||
my_ok(false, "A promise was rejected with " + err);
|
||||
finish();
|
||||
});
|
||||
|
@ -11,11 +11,9 @@ function handleRequest(request, response) {
|
||||
var optionsHost = request.getHeader("options-host");
|
||||
} catch(e) { }
|
||||
|
||||
bool headerFound = false;
|
||||
if (optionsHost) {
|
||||
setState("postHost", request.host);
|
||||
setState("optionsHost", optionsHost);
|
||||
headerFound = true;
|
||||
}
|
||||
|
||||
try {
|
||||
@ -24,13 +22,8 @@ function handleRequest(request, response) {
|
||||
|
||||
if (emptyHeader && emptyHeader == "nada") {
|
||||
setState("emptyHeader", "nada");
|
||||
headerFound = true;
|
||||
}
|
||||
if (headerFound) {
|
||||
return;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
return;
|
||||
|
||||
case "OPTIONS":
|
||||
if (getState("optionsHost") == request.host) {
|
||||
|
Loading…
Reference in New Issue
Block a user