Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Improved documentation around HTTP server meta variables.

Fixed #16581, with thanks to Bernhard Essl.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16644 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 549faf19bf4c59d6c67b860cb93add1c24f3420a 1 parent 11cc266
Malcolm Tredinnick authored August 22, 2011

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. 10  docs/ref/request-response.txt
10  docs/ref/request-response.txt
@@ -125,10 +125,10 @@ All attributes except ``session`` should be considered read-only.
125 125
     Available headers depend on the client and server, but here are some
126 126
     examples:
127 127
 
128  
-        * ``CONTENT_LENGTH``
129  
-        * ``CONTENT_TYPE``
130  
-        * ``HTTP_ACCEPT_ENCODING``
131  
-        * ``HTTP_ACCEPT_LANGUAGE``
  128
+        * ``CONTENT_LENGTH`` -- the length of the request body (as a string).
  129
+        * ``CONTENT_TYPE`` -- the MIME type of the request body.
  130
+        * ``HTTP_ACCEPT_ENCODING`` -- Acceptable encodings for the response.
  131
+        * ``HTTP_ACCEPT_LANGUAGE`` -- Acceptable languages for the response.
132 132
         * ``HTTP_HOST`` -- The HTTP Host header sent by the client.
133 133
         * ``HTTP_REFERER`` -- The referring page, if any.
134 134
         * ``HTTP_USER_AGENT`` -- The client's user-agent string.
@@ -138,7 +138,7 @@ All attributes except ``session`` should be considered read-only.
138 138
         * ``REMOTE_USER`` -- The user authenticated by the Web server, if any.
139 139
         * ``REQUEST_METHOD`` -- A string such as ``"GET"`` or ``"POST"``.
140 140
         * ``SERVER_NAME`` -- The hostname of the server.
141  
-        * ``SERVER_PORT`` -- The port of the server.
  141
+        * ``SERVER_PORT`` -- The port of the server (as a string).
142 142
 
143 143
     With the exception of ``CONTENT_LENGTH`` and ``CONTENT_TYPE``, as given
144 144
     above, any HTTP headers in the request are converted to ``META`` keys by

0 notes on commit 549faf1

Please sign in to comment.
Something went wrong with that request. Please try again.