Commits

Anonymous committed 0343545 Merge

merge for 0.6.8

Comments (0)

Files changed (2)

django_wsgiserver/wsgiserver/__init__.py

             try:
                 k, v = line.split(":", 1)
             except ValueError:
-                raise ValueError("Illegal header line.")
+                # raise ValueError("Illegal header line.")
+                print "Illegal header line" # add loging
+                continue 
             # TODO: what about TE and WWW-Authenticate?
             k = k.strip().title()
             v = v.strip()

patches/wsgiserver-headline-robustness.patch

+diff -r cb1e5c8f3ce6 django_wsgiserver/wsgiserver/__init__.py
+--- a/django_wsgiserver/wsgiserver/__init__.py	Mon Nov 01 11:51:46 2010 -0700
++++ b/django_wsgiserver/wsgiserver/__init__.py	Mon Nov 08 10:32:29 2010 -0800
+@@ -166,7 +166,9 @@
+             try:
+                 k, v = line.split(":", 1)
+             except ValueError:
+-                raise ValueError("Illegal header line.")
++                # raise ValueError("Illegal header line.")
++                print "Illegal header line" # add loging
++                continue 
+             # TODO: what about TE and WWW-Authenticate?
+             k = k.strip().title()
+             v = v.strip()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.