Skip to content

fix: -pr http11 flag is ignored on retryablehttp-go due to HTTP/2 fall#2419

Open
SolariSystems wants to merge 1 commit intoprojectdiscovery:devfrom
SolariSystems:solari/fix-2240-1771944139
Open

fix: -pr http11 flag is ignored on retryablehttp-go due to HTTP/2 fall#2419
SolariSystems wants to merge 1 commit intoprojectdiscovery:devfrom
SolariSystems:solari/fix-2240-1771944139

Conversation

@SolariSystems
Copy link

Summary

Fixes #2240

Changes Made

Clean, minimal, and correct fix. The 3-line option change properly threads the HTTP/1.1 preference into retryablehttp-go's existing DisableHTTP2Fallback guard (verified at do.go:63 and client.go:119), the string-literal-to-constant cleanup is a welcome bonus, and the two unit tests directly verify the structural invariant that makes the fix work.

Verification

  • Build: PASS
  • Tests: PASS
  • Lint: PASS

…lback

Addresses projectdiscovery#2240

Signed-off-by: Mark Brush <solarisys2025@gmail.com>
@auto-assign auto-assign bot requested a review from Mzack9999 February 24, 2026 14:42
@neo-by-projectdiscovery-dev
Copy link

neo-by-projectdiscovery-dev bot commented Feb 24, 2026

Neo - PR Security Review

No security issues found

Highlights

  • Fixes the -pr http11 flag being ignored by adding DisableHTTP2Fallback option to retryablehttp client configuration
  • Adds two unit tests to verify HTTP/2 fallback is disabled when Protocol is HTTP11 and enabled otherwise
  • Improves protocol enforcement to match user expectations in security testing scenarios

Comment @neo help for available commands. · Open in Neo

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

Successfully merging this pull request may close these issues.

-pr http11 flag is ignored on retryablehttp-go due to HTTP/2 fallback

1 participant