Skip to content

Commit

Permalink
When using a Unix domain socket, you need to freely set the host header.
Browse files Browse the repository at this point in the history
  • Loading branch information
pyama86 committed Nov 24, 2023
1 parent f804e59 commit 1a7bee5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rp.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ func NewRouter(r Relayer) http.Handler {
return
}
if u != nil {
pr.Out.Host = u.Host
pr.Out.URL = u

}
if err := rr.Rewrite(pr); err != nil {
pr.Out.Header.Set(errorKey, err.Error())
Expand Down

0 comments on commit 1a7bee5

Please sign in to comment.