Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Commit

Permalink
client util, trim http headers
Browse files Browse the repository at this point in the history
  • Loading branch information
superisaac committed Oct 17, 2023
1 parent 67c07da commit 1055ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/client_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (self *HeaderFlags) Parse() (http.Header, error) {
if len(arr) != 2 {
return nil, errors.New("invalid http header")
}
header.Add(arr[0], arr[1])
header.Add(strings.Trim(arr[0], " "), strings.Trim(arr[1], " "))
}
return header, nil
}
Expand Down

0 comments on commit 1055ebd

Please sign in to comment.