-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
http method patch is case sensitive #254
Comments
Unfortunately, it is intended. |
ah I don't know how I missed this issue... Anyway it might be worth to add a small paragraph to the readme I literally spend an hour on this - but on the other hand I missed the issue #37 and didn't check source earlier... |
HTTP methods are case-sensitive. The examples lead developers to think that this API normalizes the method names to uppercase, leading to issues like JakeChampion#37 and JakeChampion#254. Setting the right precedent in the README will prevent developers from making mistake of trying to use method: 'patch' (or any other verb that isn't normalized for backwards compatibility).
HTTP methods are case-sensitive. The examples in the README currently lead developers to think that this API normalizes all of the method names to uppercase, leading to issues like JakeChampion#37 and JakeChampion#254. Setting the right precedent in the README will prevent developers from making mistake of trying to use method: 'patch' (or any other verb that isn't normalized for backwards compatibility).
HTTP methods are case-sensitive. The examples in the README currently lead developers to think that this API normalizes all of the method names to uppercase, leading to issues like JakeChampion#37 and JakeChampion#254. Setting the right precedent in the README will prevent developers from making mistake of trying to use method: 'patch' (or any other verb that isn't normalized for backwards compatibility).
What do do you think of logging a warning when fetch is called with lowercase http verbs? Just dropped over an hour on what seemed like a very mysterious bug. |
Is this intended?
https://github.com/github/fetch/blob/master/fetch.js#L200
method patch is not the member of the array.
spend some time till I figure out why my fetch was throwing:
The text was updated successfully, but these errors were encountered: