Commit 3f038ef
committed
fix(-pr http11): disable HTTP/2 fallback in retryablehttp when http11 protocol is set
When -pr http11 is used, httpx correctly sets TLSNextProto={} and
GODEBUG=http2client=0 to force HTTP/1.1. However retryablehttp-go's
automatic HTTP/2 fallback in do.go silently bypasses this:
if err is malformed HTTP/2 response {
resp, err = c.HTTPClient2.Do(req.Request) // <- ignores http11 config
}
This commit sets retryablehttpOptions.DisableHTTP2Fallback=true when
Protocol=="http11", ensuring the HTTP/1.1-only requirement is honoured
end-to-end.
Depends on: projectdiscovery/retryablehttp-go#532
Fixes: #22401 parent 4a09273 commit 3f038ef
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
160 | 164 | | |
161 | 165 | | |
162 | 166 | | |
| |||
0 commit comments