-
Notifications
You must be signed in to change notification settings - Fork 20.6k
Ajax: Overwrite s.contentType with content-type header value, if any #4650
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
Conversation
Is there a way to re-run the jsf-clabot? My Git email settings were incorrect; now, the commit is correctly linked to my GitHub account. |
@wenz You need to amend the existing commit with new author information & then |
fa8db2b
to
3b7dab1
Compare
@mgol done - thanks for the pointer! |
Declare loop variable at the beginning of the prefilter Co-Authored-By: Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
Break long line Co-Authored-By: Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM! We need to think whether to include this in 4.0.0 or 3.5.0 (I'd opt for the latter, but we need to evaluate whether this should be treated as a breaking change or not) but the change looks good anyway.
Yes, this might change behavior, but I consider this a bug fix. You'd have to set the header and then expect that header to be ignored. |
You could have a header bag that you add to the request via a helper local to the project & then rely on being able to override that via |
This fixes the issue of "%20" in POST data being replaced with "+" even for requests with content-type different from "application/x-www-form-urlencoded", e.g. for "application/json". Fixes gh-4119 Closes gh-4650 (cherry picked from 7fb90a6) Co-authored-by: Richard Gibson <richard.gibson@gmail.com> Co-authored-by: Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
Summary
Overwrite s.contentType with content-type header value, if any
Fixes #4119
Checklist