Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(vpn): avoid setting session token header twice#18524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ethanndickson wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromethan/avoid-setting-token-header-twice

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedJun 24, 2025
edited
Loading

coderd currently does not handle a session token header value of the formtoken1, token2. However, it does handle multiple instances of the token header by simply taking the first. This is the default behaviour ofhttp.Header.Get.

So, setting the token header twice causes issues when Coder is behind a proxy that merges duplicate headers, such asApache.

This PR ensures we don't set it twice by not sharing one slice between theHTTPClient and thewebsocket.DialerOptions. It also adds a regression test.

@ethanndicksonGraphite App
Copy link
MemberAuthor

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@ethanndicksonethanndickson marked this pull request as ready for reviewJune 24, 2025 10:56
@ethanndicksonethanndicksonforce-pushed theethan/avoid-setting-token-header-twice branch fromf53cc17 to591a3b7CompareJune 24, 2025 10:56
@ethanndicksonethanndickson changed the titlefix: avoid setting session token header twicechore: fix typo when setting dial headersJun 24, 2025
@ethanndicksonethanndicksonforce-pushed theethan/avoid-setting-token-header-twice branch from591a3b7 tobafa0c6CompareJune 24, 2025 11:02
@ethanndicksonethanndicksonforce-pushed theethan/avoid-setting-token-header-twice branch frombafa0c6 tocbf7ec7CompareJune 24, 2025 11:30
@ethanndicksonethanndickson changed the titlechore: fix typo when setting dial headersfix(vpn): avoid setting session token header twiceJun 24, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@deansheatherdeansheatherdeansheather approved these changes

Assignees

@ethanndicksonethanndickson

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ethanndickson@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp