Skip to content

fix(http): format Proxy-Authenticate challenge params#103

Open
tianhuyang wants to merge 2 commits into
SagerNet:devfrom
tianhuyang:fix/http-proxy-auth-header-comma
Open

fix(http): format Proxy-Authenticate challenge params#103
tianhuyang wants to merge 2 commits into
SagerNet:devfrom
tianhuyang:fix/http-proxy-auth-header-comma

Conversation

@tianhuyang

@tianhuyang tianhuyang commented Jun 22, 2026

Copy link
Copy Markdown

Summary

This PR fixes the Proxy-Authenticate challenge format in HTTP proxy auth responses.

What Changed

  • Added the missing comma between auth parameters:
    • Before: Basic realm="sing-box" charset="UTF-8"
    • After: Basic realm="sing-box", charset="UTF-8"

Why

The challenge now follows standard auth-parameter formatting, which improves client compatibility when parsing the header.

Scope

  • Single-line change in protocol/http/handshake.go
  • No logic changes beyond header formatting

Validation

  • go test ./protocol/http (package compiles; no test files)

@tianhuyang tianhuyang changed the title fix(http): add comma in Proxy-Authenticate Basic params fix(http): format Proxy-Authenticate challenge params Jun 22, 2026
@tianhuyang

Copy link
Copy Markdown
Author

@nekohasekai @wwqgtxx could you please take a look at this small header-format fix when convenient? Thank you.

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.

1 participant