Skip to content

Commit

Permalink
Set host header
Browse files Browse the repository at this point in the history
  • Loading branch information
imranismail committed May 29, 2023
1 parent 85c0ac0 commit a8fb472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The proxy is configured with a YAML configuration file. The file path can be set
### Executable

```sh
bff --insecure=false --port=5000 --verbosity=3 <<YAML
go run main.go <<YAML
# fetch resources concurrently
- body.MultiFetcher:
resources:
Expand Down
1 change: 1 addition & 0 deletions bffurl/url_modifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func (m *Modifier) ModifyRequest(req *http.Request) error {
}
if m.url.Host != "" {
req.URL.Host = m.url.Host
req.Host = m.url.Host
}
if m.url.Path != "" {
ctx := martian.NewContext(req)
Expand Down

0 comments on commit a8fb472

Please sign in to comment.