Skip to content

Tests: Allow statusText to be "success" in AJAX tests #4973

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

mgol
Copy link
Member

@mgol mgol commented Nov 18, 2021

Summary

In HTTP/2, status message is not supported and whatever is reported as
statusText differs between browsers. In Chrome & Safari it's "success", in
Firefox & IE it's "OK". So far "success" wasn't allowed. This made the tests
pass locally if you're running an HTTP/1.1 server but on TestSwarm which is
now proxied via an HTTP/2-equipped Cloudflare, the relevant test started failing
in Chrome & Safari.

Allow "success" to resolve the issue.

Checklist

Sorry, something went wrong.

@mgol mgol added this to the 3.6.1 milestone Nov 18, 2021
@mgol mgol self-assigned this Nov 18, 2021
@mgol mgol force-pushed the ajax-statusText-http2 branch from 4fa6e4b to 729fa3e Compare November 18, 2021 23:50
In HTTP/2, status message is not supported and whatever is reported as
statusText differs between browsers. In Chrome & Safari it's "success", in
Firefox & IE it's "OK". So far "success" wasn't allowed. This made the tests
pass locally if you're running an HTTP/1.1 server but on TestSwarm which is
now proxied via an HTTP/2-equipped Cloudflare, the relevant test started failing
in Chrome & Safari.

Allow "success" to resolve the issue.
@mgol mgol force-pushed the ajax-statusText-http2 branch from 729fa3e to b44bb4d Compare November 30, 2021 23:10
@mgol mgol removed the Needs review label Dec 1, 2021
@mgol mgol merged commit 19ced96 into jquery:main Dec 1, 2021
@mgol mgol deleted the ajax-statusText-http2 branch December 1, 2021 11:46
mgol added a commit to mgol/jquery that referenced this pull request Dec 1, 2021
In HTTP/2, status message is not supported and whatever is reported as
statusText differs between browsers. In Chrome & Safari it's "success", in
Firefox & IE it's "OK". So far "success" wasn't allowed. This made the tests
pass locally if you're running an HTTP/1.1 server but on TestSwarm which is
now proxied via an HTTP/2-equipped Cloudflare, the relevant test started failing
in Chrome & Safari.

Allow "success" to resolve the issue.

Closes jquerygh-4973

(cherry picked from commit 19ced96)
@mgol
Copy link
Member Author

mgol commented Dec 1, 2021

Landed on main in 19ced96 & on 3.x-stable in 7439e22.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants