1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-01 17:38:37 +00:00

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

View file

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