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
In two places this code uses URL->scheme (the protocol of the original URL) rather than url->scheme (the protocol of the redirected URL. I found that after replacing these two instances the code appears to work in this particular case. But not really understanding these protocols very well I hesitate to make a pull request based on a single case.
I see comments in the code that the whole http_request function needs to be rewritten anyway, so just bringing this issue to the developers' attention.
The text was updated successfully, but these errors were encountered:
For example, fetching https://www.llvm.org/releases/7.0.1/llvm-7.0.1.src.tar.xz using a proxy (in my case squid running at http://172.17.0.1:3128 and a certificate that I have manually added to my system) produces:
The problem seems to be connected with the fact that an https URL redirects to a http URL. From the proxy log I can see:
I tracked the problem down to code around here in fetch/http.c:
In two places this code uses
URL->scheme
(the protocol of the original URL) rather thanurl->scheme
(the protocol of the redirected URL. I found that after replacing these two instances the code appears to work in this particular case. But not really understanding these protocols very well I hesitate to make a pull request based on a single case.I see comments in the code that the whole http_request function needs to be rewritten anyway, so just bringing this issue to the developers' attention.
The text was updated successfully, but these errors were encountered: