-
Notifications
You must be signed in to change notification settings - Fork 374
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
Accept HTTP 201 response codes #686
base: master
Are you sure you want to change the base?
Conversation
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you'd like this issue to stay open please leave a comment indicating how this issue is affecting you. Thank you. |
@rharriso If you are using an open source web application framework, please share its name and version. |
Not supporting 201 is a defect. It's not necessary to enumerate all of the frameworks that use 201 for successful authentication.
Requiring the response code to be 200 necessitated an adapter in the system I was working on 6 months ago. I can't remember if I had to intercept the response on the server or the client, and I no longer have access to that project so I can't confirm. I'm no longer working with PusherJS, so it doesn't matter to me if this defect is fixed, but it is a defect. |
I appreciate your comment. I'll investigate a little deeper to see if I can find an example to share with the team. My initial theory was that perhaps your app was registering the user (i.e., creating a new resource) with the first auth request, and that was the reason for the web framework to return a |
Hasura is an example of a service which returns a 201 (for pretty much all successful api response use cases). Pusher not allowing the 201 was one of those multi-hour head scratchers that hopefully future users won't have to go through. |
What does this PR do?
Accept HTTP response code 201. See issue #685
Checklist
npm run format
has been runCHANGELOG
201
from successfulPOST
requests