diff options
Diffstat (limited to 'netlib/http/http1')
-rw-r--r-- | netlib/http/http1/read.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/netlib/http/http1/read.py b/netlib/http/http1/read.py index bf4c2f0c..a4c341fd 100644 --- a/netlib/http/http1/read.py +++ b/netlib/http/http1/read.py @@ -340,7 +340,9 @@ def _read_headers(rfile): raise ValueError() ret.append((name, value)) except ValueError: - raise exceptions.HttpSyntaxException("Invalid headers") + raise exceptions.HttpSyntaxException( + "Invalid header line: %s" % repr(line) + ) return headers.Headers(ret) |