Skip to content

Commit

Permalink
Fix HeaderLocator always return true
Browse files Browse the repository at this point in the history
  • Loading branch information
magodo committed May 16, 2024
1 parent 27efaf7 commit b2d73fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/client/async.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b2d73fd

Please sign in to comment.