[BUG]: The ETag
header is ignored if it's all lowercase
#1296
Labels
Milestone
ETag
header is ignored if it's all lowercase
#1296
Brief description of the issue
Version 4.5.2 introduced support for caching through
ETag
/If-None-Match
headers, when supported by the server.However, if the server responds with that header in any other form than
ETag
(e.g.etag
,Etag
,eTaG
), RSS Guard won't save it.For example, this feed (which is 2 MiB) responds with
etag
, and so RSS Guard ignores it:As you might know, HTTP header fields are case-insensitive.
How to reproduce the bug?
etag
header:https://thisweek.gnome.org/index.xml
What was the expected result?
When the
ETag
header is used by RSS Guard, a message similar to this one shows up in the logs:What actually happened?
The
Using ETag value: ...
message doesn't show up in logs after that second feed refresh.Debug log
log.txt (it was too large to fit directly in here)
Operating system and version
master
(4cd363e)The text was updated successfully, but these errors were encountered: