Changes between Initial Version and Version 1 of Ticket #17941


Ignore:
Timestamp:
Mar 20, 2012, 3:17:11 PM (13 years ago)
Author:
Claude Paroz
Comment:

The Host header is mandatory in HTTP 1.1 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.23), however it might happen that older user agents still use the 1.0 protocol with no Host. You can either choose to return an error (400) if you don't want to support those, or use request.META.get('HTTP_HOST') and handle the None value. Django itself is not responsible to guarantee that HTTP_HOST will be filled in all requests.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17941

    • Property Resolutioninvalid
    • Property Status newclosed
  • Ticket #17941 – Description

    initial v1  
    22
    33There is report:
    4 
     4{{{
    55===============================================================
    66
     
    5757 'wsgi.url_scheme': 'http',
    5858 'wsgi.version': (1, 1)}>
     59}}}
Back to Top