Code

Changes between Initial Version and Version 1 of Ticket #17941


Ignore:
Timestamp:
03/20/12 13:17:11 (2 years ago)
Author:
claudep
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 Status changed from new to closed
    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Needs documentation unset
    • Property Resolution changed from to invalid
  • Ticket #17941 – Description

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