Skip to content
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

https->http and http->https redirects break #23

Open
jaawerth opened this issue Jun 12, 2016 · 0 comments
Open

https->http and http->https redirects break #23

jaawerth opened this issue Jun 12, 2016 · 0 comments

Comments

@jaawerth
Copy link

jaawerth commented Jun 12, 2016

Hi!

Noticed this today - while one can get SSL support by supplying an Agent, the separation causes issues with automatic redirects: if an HTTPS URL redirects to HTTP, or conversely if an HTTP request redirects to HTTPS, the automatic redirect will cause an error. Until SSL is fully supported, it may be helpful to have an "ssllAgent" option or the like for the options object for requests and sessions - it could then select which agent to use depending on the protocol of the URL in the redirect chain.

This would also remove the need to supply the agent for individual requests in a session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant