Ticket #6647: self_path_dummy.patch

File self_path_dummy.patch, 764 bytes (added by nospampleasethanks, 16 years ago)

self.path dummy definition patch

  • django/core/servers/basehttp.py

     
    551551    def __init__(self, *args, **kwargs):
    552552        from django.conf import settings
    553553        self.admin_media_prefix = settings.ADMIN_MEDIA_PREFIX
     554        # Need this or self.log_message() will die on some "bad requests",
     555        # such as "OPTIONS * / HTTP/1.1".
     556        # (Maybe this is a BaseHTTPRequestHandler bug?)
     557        # See "9.2 OPTIONS" on http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
     558        self.path = ''
    554559        BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
    555560
    556561    def get_environ(self):
Back to Top