diff --git a/internal/client/async.go b/internal/client/async.go index f8785be..7ac1526 100644 --- a/internal/client/async.go +++ b/internal/client/async.go @@ -35,7 +35,7 @@ var _ ValueLocator = HeaderLocator("") func (loc HeaderLocator) LocateValueInResp(resp resty.Response) (string, bool) { v := resp.Header().Get(string(loc)) - return v, true + return v, v != "" } func (loc HeaderLocator) String() string { return fmt.Sprintf(`header.%s`, string(loc))