#1627: httplib now ignores negative Content-Length headers.
diff --git a/Lib/httplib.py b/Lib/httplib.py
index bb4b59e..5696467 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -438,6 +438,9 @@
                 self.length = int(length)
             except ValueError:
                 self.length = None
+            else:
+                if self.length < 0:  # ignore nonsensical negative lengths
+                    self.length = None
         else:
             self.length = None