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: |
|
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)
Change History (3)
comment:1
johnbillion — 21 months ago
SergeyBiryukov — 21 months ago
comment:2
SergeyBiryukov — 21 months ago
- Keywords has-patch added
Note: See
TracTickets for help on using
tickets.

Related: #17316 and its subsequent changeset at [18192].
I wonder if including is_feed() in that conditional block will fix this issue?