quixote http_request.py,1.52,1.53

Neil Schemenauer <nascheme-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]>
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
Update of /home/cvs/quixote
In directory hewson:/tmp/cvs-serv5061

Modified Files:
	http_request.py 
Log Message:
minor code cleanup


Index: http_request.py
===================================================================
RCS file: /home/cvs/quixote/http_request.py,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- http_request.py	16 Oct 2002 18:42:19 -0000	1.52
+++ http_request.py	30 Oct 2002 20:59:10 -0000	1.53
@@ -179,12 +179,12 @@
         Content-Type header, if available.
         """
         environ = self.environ
-        name = ("_".join(name.split("-"))).upper()
+        name = name.replace("-", "_").upper()
         val = environ.get(name)
         if val is not None:
             return val
         if name[:5] != 'HTTP_':
-            name = 'HTTP_%s' % name
+            name = 'HTTP_' + name
         return environ.get(name, default)
 
     def get_cookie (self, cookie_name, default=None):
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.