Ticket #9712: meta_headers.patch
File meta_headers.patch, 735 bytes (added by , 16 years ago) |
---|
-
docs/ref/request-response.txt
142 142 * ``SERVER_NAME`` -- The hostname of the server. 143 143 * ``SERVER_PORT`` -- The port of the server. 144 144 145 The transformation rule for HTTP headers (other than ``CONTENT_LENGTH`` and 146 ``CONTENT_TYPE``) is simple: uppercase the header name, prepend ``HTTP_`` 147 and replace all ``-`` characters by ``_``. 148 149 Example: ``X-Forwarded-For`` becomes ``HTTP_X_FORWARDED_FOR`` 150 145 151 .. attribute:: HttpRequest.user 146 152 147 153 A ``django.contrib.auth.models.User`` object representing the currently