You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for writing this module. I am making a post call to a server with username and password. The response code returned is 302. I am not able to find how redirect is getting handled in requestify.
The text was updated successfully, but these errors were encountered:
As far as I looked into the source code, redirect is reported as an error to the client code. I think it's this way because requestify should handle 3xx codes, but at the moment, it isn't handling. So if you want to handle them yourself, you should change the isSuccessfull function in lib/Requestify.js from:
return code >= 200 && code < 300;
to
return code >= 200 && code < 400;
With this change, you will get your events to fire up normaly and you can handle 300 codes yourself.
Hope that helps.
I'm planning to contribute more actively to requestify from now on, but I didn't contact the author yet to see if he plans on implementing this kind of stuff...
Thanks for writing this module. I am making a post call to a server with username and password. The response code returned is 302. I am not able to find how redirect is getting handled in requestify.
The text was updated successfully, but these errors were encountered: