Skip to content

Commit 7e45919

Browse files
committed
fix a race condition
1 parent 3fa3edf commit 7e45919

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
@@ -631,7 +631,7 @@ func (h *HeaderTransport) RoundTrip(req *http.Request) (*http.Response, error) {
631631
}
632632
}
633633
if h.Transport == nil {
634-
h.Transport = http.DefaultTransport
634+
return http.DefaultTransport.RoundTrip(req)
635635
}
636636
return h.Transport.RoundTrip(req)
637637
}

0 commit comments

Comments
 (0)