SVN: r20290 - in trunk/quixote: . server

akuchlin-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected] Mon, 20 Jan 2003 15:02:04 -0500
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
Author: akuchlin
Date: 2003-01-20 15:02:03 -0500 (Mon, 20 Jan 2003)
New Revision: 20290

Modified:
   trunk/quixote/CHANGES
   trunk/quixote/server/medusa_http.py
Log:
Add two env. vars to Medusa server

Modified: trunk/quixote/server/medusa_http.py
==============================================================================
--- trunk/quixote/server/medusa_http.py	(original)
+++ trunk/quixote/server/medusa_http.py	2003-01-20 15:02:04.000000000 -0500
@@ -47,10 +47,12 @@
             [request.uri, query_string] = request.uri.split('?', 1)
 
         environ = {'REQUEST_METHOD':request.command,
+                   'ACCEPT_ENCODING':msg.get('Accept-encoding'),
                    'CONTENT_TYPE': msg.get('Content-type'),
                    'CONTENT_LENGTH':len(data),
                    'HTTP_COOKIE':msg.get('Cookie'),
                    'HTTP_REFERER':msg.get('Referer'),
+                   'HTTP_USER_AGENT':msg.get('User-agent'),
                    'PATH_INFO':request.uri,
                    'QUERY_STRING':query_string,
                    'REMOTE_ADDR':remote_addr,

Modified: trunk/quixote/CHANGES
==============================================================================
--- trunk/quixote/CHANGES	(original)
+++ trunk/quixote/CHANGES	2003-01-20 15:02:04.000000000 -0500
@@ -2,6 +2,9 @@
 
   * Fix the Medusa HTTP server to work with HTML templates.  (David M. Cooke)
 
+  * Add HTTP_USER_AGENT and ACCEPT_ENCODING to Medusa HTTP server. 
+    (Graham Fawcett)
+
   * Fix _c_htmltext.c to compile on Windows.  (Graham Fawcett)