Flatpages middleware does not alter status_code back to 200
|Reported by:||Domen Kožar||Owned by:||nobody|
|Cc:||domen@…, Taavi Taijala||Triage Stage:||Unreviewed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Middlewares in the stack have no information if a flatpage was picked or not by the FlatpageFallbackMiddleware. Even more, flatpages pass response.status_code == 400 even if flatpages view returned successfully.
If we find a flatpage from the view, change back response.status_code to 200.
There are no tests for flatpages.
Change History (4)
comment:1 Changed 5 years ago by
|Cc:||Taavi Taijala added|
|Status:||new → closed|