HTTP.post() or any non-GET request does not follow redirects #2808
Comments
You're right, the behavior does not match our docs. |
I am just going to use the request npm. This is no biggie. |
I actually do think we should fix this. It's one of the few options we implement and document, so it should work properly! (That said, I also think we should minimize the amount of options we expose in packages like http so that we don't run into these sorts of details in the future, and it's totally reasonable to use the request npm module directly if you want to do more advanced things with http!) |
Oh.. okay |
estark37
pushed a commit
that referenced
this issue
Dec 21, 2014
estark37
pushed a commit
that referenced
this issue
Dec 29, 2014
Thanks! :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Regardless of setting the
followRedirects
option totrue
, non-GET requests will not follow redirects because of howrequest
works.According to here:
https://github.com/mikeal/request#requestoptions-callback
The
followAllRedirects
options must be set totrue
in order for non-GET requests to follow redirects.In the code here: https://github.com/meteor/meteor/blob/devel/packages/http/httpcall_server.js
We need to be able to pass the
followAllRedirects
argument in.The text was updated successfully, but these errors were encountered: