Opened 21 months ago

Last modified 21 months ago

#18505 new defect (bug)

http 404 sent for the RSS feed when there are no posts - should be 200

Reported by: mark-k Owned by:
Priority: normal Milestone: Awaiting Review
Component: Feeds Version: 3.2.1
Severity: normal Keywords: has-patch
Cc:

Description

for sites with no posts, the HTTP status code returned for the RSS feed is 404, but since the address was a valid address and it just happens that the content is empty, a 200 status should be sent.

(It annoys link checkers which then report that there are broken link at the site because by default for most themes there is a link to the RSS feed in the header)

Attachments (1)

18505.patch (772 bytes) - added by SergeyBiryukov 21 months ago.

Download all attachments as: .zip

Change History (3)

Related: #17316 and its subsequent changeset at [18192].

I wonder if including is_feed() in that conditional block will fix this issue?

  • Keywords has-patch added
Note: See TracTickets for help on using tickets.