diff MoinMoin/support/werkzeug/test.py @ 4754:7cb92118a93e

updated werkzeug to 0.5.1
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 10 Jul 2009 01:07:24 +0200
parents bd3f5ccf6fb6
children 8de563c487be
line wrap: on
line diff
--- a/MoinMoin/support/werkzeug/test.py	Sat Jul 04 16:22:01 2009 +0200
+++ b/MoinMoin/support/werkzeug/test.py	Fri Jul 10 01:07:24 2009 +0200
@@ -91,7 +91,6 @@
 
     length = int(_closure[0].tell())
     _closure[0].seek(0)
-    _closure[0].seek(0)
     return _closure[0], length, boundary
 
 
@@ -121,8 +120,9 @@
 
     def getheaders(self, name):
         headers = []
+        name = name.lower()
         for k, v in self.headers:
-            if k == name:
+            if k.lower() == name:
                 headers.append(v)
         return headers