Ticket #8376: 8376-r8418.diff

File 8376-r8418.diff, 680 bytes (added by Joost Cassee, 16 years ago)
  • django/contrib/flatpages/middleware.py

     
    77        if response.status_code != 404:
    88            return response # No need to check for a flatpage for non-404 responses.
    99        try:
    10             return flatpage(request, request.path)
     10            return flatpage(request, request.path_info)
    1111        # Return the original response if any errors happened. Because this
    1212        # is a middleware, we can't assume the errors will be caught elsewhere.
    1313        except Http404:
Back to Top