c4bad5c1bc
From the Go docs: "A `nil` map is equivalent to an empty map. [1] Therefore, an additional nil check for `opts.ExtraHeaders` before the loop is unnecessary because `opts.ExtraHeaders` is a `map`. [1]: https://go.dev/ref/spec#Map_types Signed-off-by: Eng Zer Jun <engzerjun@gmail.com> |
||
---|---|---|
.. | ||
headers.go | ||
headers_test.go | ||
rest.go | ||
url.go | ||
url_test.go |