Skip to content

Commit

Permalink
Fix race condition in signaller component (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-helmich committed Nov 25, 2020
1 parent a3c0873 commit bf6ba60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/signaller/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (b *Signaller) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if err != nil {
b.errors <- err
}
request.Header = r.Header
request.Header = r.Header.Clone()
request.Host = r.Host
request.Header.Set("X-Forwarded-For", r.RemoteAddr)
b.signalQueue <- Signal{request, 0}
Expand Down

0 comments on commit bf6ba60

Please sign in to comment.