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)