#9712: Format of HTTP headers in request.META not clear
---------------------------+------------------------------------------------
 Reporter:  masklinn       |       Owner:  nobody    
   Status:  new            |   Milestone:  post-1.0  
Component:  Documentation  |     Version:  1.0       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  1              |  
---------------------------+------------------------------------------------
 The [http://docs.djangoproject.com/en/dev/ref/request-
 response/#django.http.HttpRequest.META documentation for HttpRequest.META]
 clearly indicates that HTTP headers are stored in it, but it doesn't
 clearly spell the format: `Content-Length` becomes `CONTENT_LENGTH`, but
 `Accept-Encoding` becomes `HTTP_ACCEPT_ENCODING`.

 It might be useful to specify that (apart from special cases), all HTTP
 headers get prefixed by `HTTP_` and all `"-"` characters are replaced by
 `"_"` characters (e.g. `X-Forwarded-For` becomes `HTTP_X_FORWARDED_FROM`).

 A basic patch is provided, applies cleanly against branch 1.0.X @rev 9534

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9712>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to