Skip to content

Commit

Permalink
Fetch: add return statement to cors-preflight-status.any.js (#5230)
Browse files Browse the repository at this point in the history
Supersedes #5228.
  • Loading branch information
annevk authored and jdm committed Mar 27, 2017
1 parent f6100de commit 2c544f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch/api/cors/cors-preflight-status.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function corsPreflightStatus(desc, corsUrl, preflightStatus) {
urlParameters += "&preflight_status=" + preflightStatus;

promise_test(function(test) {
fetch(RESOURCES_DIR + "clean-stash.py?token=" + uuid_token).then(function(resp) {
return fetch(RESOURCES_DIR + "clean-stash.py?token=" + uuid_token).then(function(resp) {
assert_equals(resp.status, 200, "Clean stash response's status is 200");
if (200 <= preflightStatus && 299 >= preflightStatus) {
return fetch(url + urlParameters, requestInit).then(function(resp) {
Expand Down

0 comments on commit 2c544f0

Please sign in to comment.