Backed out changeset 9f3adfd2ca52 (bug 815299) for M4 bustage.

This commit is contained in:
Nigel Babu 2015-09-09 09:12:24 +05:30
parent b571b2200a
commit 4c832dd2e9
2 changed files with 1 additions and 11 deletions

View File

@ -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();
});

View File

@ -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;
}
case "OPTIONS":
if (getState("optionsHost") == request.host) {