Ticket #7495: doc-content_type.diff

File doc-content_type.diff, 749 bytes (added by Jeremy Dunck, 16 years ago)
  • vendor/django_dist/django/middleware/doc.py

    diff --git a/vendor/django_dist/django/middleware/doc.py b/vendor/django_dist/django/middleware/doc.py
    index 48c155c..e7b4814 100644
    a b class XViewMiddleware(object):  
    1313        to lookup the view function for an arbitrary page.
    1414        """
    1515        if request.method == 'HEAD' and (request.META.get('REMOTE_ADDR') in settings.INTERNAL_IPS or (request.user.is_authenticated() and request.user.is_staff)):
    16             response = http.HttpResponse()
     16            response = view_func(request, *view_args, **view_kwargs)
    1717            response['X-View'] = "%s.%s" % (view_func.__module__, view_func.__name__)
    1818            return response
Back to Top