Bug 379598 - Accepts header without application/rss+xml
Summary: Accepts header without application/rss+xml
Status: REPORTED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: 5.4.3
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-07 08:23 UTC by jhg.jesus
Modified: 2020-11-22 02:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jhg.jesus 2017-05-07 08:23:57 UTC
I'm testing in local a feed generated from a RESTful API, and I have problems with Akregator because it didn't send in accepts header the mime type 'application/rss+xml' to know the server what format is the best for that request. Akregator prefer 'text/html' over other mime type, but when it receive the index page in HTML it doesn't understand it as a feed.

Headers sent by Akregator:
req_headers: [
  {"host", "localhost:4000"},
  {"connection", "keep-alive"},
  {"user-agent", "Akregator/5.4.3; syndication"},
  {"if-modified-since", "Thu, 01 Jan 1970 00:00:00 GMT"},
  {"accept", "text/html, text/*;q=0.9, image/jpeg;q=0.9, image/png;q=0.9, image/*;q=0.9, */*;q=0.8"},
  {"accept-encoding", "gzip, deflate, x-gzip, x-deflate"},
  {"accept-charset", "utf-8,*;q=0.5"},
  {"accept-language", "en-US,en;q=0.9"}
]

I think it's not difficult add to the accepts header 'application/rss+xml' with priority over 'text/html' when it dowload the feed.
Comment 1 Justin Zobel 2020-11-22 02:42:45 UTC
This doesn't feel like a bug, more of a feature request, so I've moved it to the wishist priority.

If you are able to please don't hesitate to send in patches via https://invent.kde.org/pim/akregator.