8000 When overriding dest_addr, also override Host header by dkegel-fastly · Pull Request #61 · coreruleset/go-ftw · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

When overriding dest_addr, also override Host header #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions runner/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,11 @@ func applyInputOverride(testRequest *test.Input) error {
case "dest_addr":
oDestAddr := &value
testRequest.DestAddr = oDestAddr
// Work around "running 920171-1: panic: assignment to entry in nil map"
// TODO: maybe create Header map instead?
if testRequest.Headers != nil {
testRequest.Headers.Set("Host", value)
}
case "protocol":
oProtocol := &value
testRequest.Protocol = oProtocol
Expand Down
0