Skip to content

Commit f53cc17

Browse files
committed
fix: avoid setting session token header twice
1 parent 0238f29 commit f53cc17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codersdk/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ func (c *Client) Dial(ctx context.Context, path string, opts *websocket.DialOpti
354354
if opts.HTTPHeader == nil {
355355
opts.HTTPHeader = http.Header{}
356356
}
357-
if opts.HTTPHeader.Get("tokenHeader") == "" {
357+
if opts.HTTPHeader.Get(tokenHeader) == "" {
358358
opts.HTTPHeader.Set(tokenHeader, c.SessionToken())
359359
}
360360

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy