diff --git a/test/types.go b/test/types.go index 1d3f9861..5d7e26c6 100644 --- a/test/types.go +++ b/test/types.go @@ -87,7 +87,9 @@ func ApplyInputOverrides(overrides *Overrides, input *Input) { applySimpleOverrides(overrides, input) applyDestAddrOverride(overrides, input) applyHeadersOverride(overrides, input) - postProcessAutocompleteHeaders(overrides.AutocompleteHeaders, overrides.StopMagic, input) + if overrides.AutocompleteHeaders != nil || overrides.StopMagic != nil { + postProcessAutocompleteHeaders(overrides.AutocompleteHeaders, overrides.StopMagic, input) + } } func applyDestAddrOverride(overrides *Overrides, input *Input) {