Skip to content

Commit

Permalink
Fix duplicate headers
Browse files Browse the repository at this point in the history
  • Loading branch information
hupe1980 committed Dec 20, 2021
1 parent 4dd14a5 commit e735b7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,12 @@ func (rs *RemoteScanner) newHTTPHeader(payload string) (http.Header, error) {

if h == "Referer" {
header.Set("Referer", fmt.Sprintf("https://%s", payload))
continue
}

if h == "Cookie" {
header.Set("Cookie", fmt.Sprintf("SessCookie=%s", payload))
continue
}

header.Add(h, payload)
Expand Down

0 comments on commit e735b7a

Please sign in to comment.