-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[console] Revert removal of inferring request method #14032
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
tylersmalley
left a comment
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.
One small change.
| var wrappedDfd = $.Deferred(); | ||
|
|
||
| console.log("Calling " + path); | ||
| var isGETRequest = /get/i.test(method) |
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.
Can we ensure the entire string is get and camelcase the variable name?
var isGetRequest = /^get$/i.test(method)
|
Should this go back to 6.0? |
|
I'm going to revert the last commit to get the master and 6.1 changes out of the way. And then I'll do the get request changes back to 5.6 in a new PR |
This reverts commit c749f8d.
|
What's the reason for reverting the case insensitivity? |
|
Only to make the backport to 6.0 and 5.6 clean - the PR this is reverting only went to 6.1 and 7.0. I'll open a followup after. |
| var wrappedDfd = $.Deferred(); | ||
|
|
||
| console.log("Calling " + path); | ||
| if (data && method == "GET") { |
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.
this needs to be case insensitive, quite often folks do get /something and then the body is ignored.
Just spotted c749f8d#r139834769, would love to see this go in 6.0 and 5.6 though,
|
Yes, planning on taking it back to 5.6. |
|
Ok, let's get this in and I have created a follow-up issue: #14280 |
This reverts #13694 and reopens #13687. Ideally we could let this sit, but large chunks of our documentation make use of GET requests with bodies. In these cases the body would be ignored.
/cc @chrisronline