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 http2Curl() there is a block of code for detecting https protocol:
if (host.endsWith(":443")) {
inferredScheme = "https";
} else if (request instanceof RequestWrapper) {
if (getOriginalRequestUri(request).startsWith("https")) {
// This is for original URL, so if during redirects we go out of HTTPs, this might be a wrong guess
inferredScheme = "https";
}
}
This code fails if request is an instance of HttpRequestWrapper (which it will be for versions of http client >= 4.3) because HttpRequestWrapper does not itself derive from RequestWrapper and so the call to getOriginalRequestUri() is never executed.
This results in curl call output always displaying http as the protocol.
The text was updated successfully, but these errors were encountered:
In http2Curl() there is a block of code for detecting https protocol:
This code fails if request is an instance of HttpRequestWrapper (which it will be for versions of http client >= 4.3) because HttpRequestWrapper does not itself derive from RequestWrapper and so the call to getOriginalRequestUri() is never executed.
This results in curl call output always displaying http as the protocol.
The text was updated successfully, but these errors were encountered: