Skip to content

Commit

Permalink
add host header
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanyMonk committed Mar 5, 2024
1 parent 1699674 commit a6aa571
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions baskets.go
Expand Up @@ -133,6 +133,7 @@ func ToRequestData(req *http.Request) *RequestData {

data.Date = time.Now().UnixNano() / toMs
data.Header = make(http.Header)
data.Header["Host"] = []string{req.Host}
for k, v := range req.Header {
data.Header[k] = v
}
Expand Down

0 comments on commit a6aa571

Please sign in to comment.