ETag value is not set correctly in HTTP client (regression)

Bug introduced after refactoring.

See commit 16b7b3bc3e.
This commit is contained in:
Frédéric Guillot 2021-02-05 20:28:00 -08:00 committed by fguillot
parent 0bece2df7d
commit b6ddaae82a
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ func (c *Client) WithAuthorization(authorization string) *Client {
// WithCacheHeaders defines caching headers.
func (c *Client) WithCacheHeaders(etagHeader, lastModifiedHeader string) *Client {
c.requestLastModifiedHeader = etagHeader
c.requestEtagHeader = etagHeader
c.requestLastModifiedHeader = lastModifiedHeader
return c
}