Skip to content

Commit

Permalink
Fixed small bug where an empty host should be ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobm-splunk authored and daveshanley committed Apr 28, 2024
1 parent 2455314 commit 574d643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/handle_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ func setStrictLocationHeader(config *shared.WiretapConfiguration, headers map[st
if parseErr != nil {
config.Logger.Warn(fmt.Sprintf("Unable to parse `Location` header URL: %s", location))
newLocations = append(newLocations, location)
} else if parsedLocation.Host != apiGatewayHost { // Check if the target location's host differs from wiretap's host
} else if parsedLocation.Host != "" && parsedLocation.Host != apiGatewayHost { // Check if the target location's host differs from wiretap's host
parsedLocation.Host = apiGatewayHost

newLocation := parsedLocation.String()
Expand Down

0 comments on commit 574d643

Please sign in to comment.