Skip to content

fix(http): reset is_ntlm_probe after Type 3 auth to prevent duplicate request#127

Closed
jonwiggins wants to merge 1 commit intomainfrom
optio/task-7c2347a9-7549-4c7a-b773-8572ed34bb28
Closed

fix(http): reset is_ntlm_probe after Type 3 auth to prevent duplicate request#127
jonwiggins wants to merge 1 commit intomainfrom
optio/task-7c2347a9-7549-4c7a-b773-8572ed34bb28

Conversation

@jonwiggins
Copy link
Copy Markdown
Owner

Summary

  • Reset the is_ntlm_probe flag to false after NTLM Type 3 authentication completes successfully, preventing the probe-retry logic from sending a spurious third HTTP request
  • The flag was set at the start of an NTLM exchange but never cleared, so the probe-retry check (is_ntlm_probe && status != 401) could fire on the already-successful 200 response

Fixes #121

Test plan

  • cargo test passes (all 2,655+ tests)
  • cargo clippy clean
  • ./scripts/run-curl-tests.sh 150 passes consistently (was ~40% failure rate)
  • Run full curl test suite to verify no regressions

🤖 Generated with Claude Code

… request

The is_ntlm_probe flag was set to true at the start of an NTLM exchange
but never reset after the Type 3 authentication completed. This caused
the probe-retry logic to sometimes fire on the already-successful 200
response, sending a spurious third request that broke protocol traces.

Fixes #121

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jonwiggins jonwiggins closed this Mar 28, 2026
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.

fix(http): NTLM auth with --fail sends duplicate Type 3 request (test 150, flaky)

1 participant