From c0c45c051a6eadf34d38f1b0d3d96c6a9196f733 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 5 Jun 2016 11:47:52 +1200 Subject: Fix test that may fail due to binary header data This is just inherently not a determinisitc test. We don't use the log HTTP interface any more, so it can just go. A more radical "solution" is inbound shortly. Fixes #1207 --- netlib/http/http1/read.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'netlib/http/http1/read.py') 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) -- cgit v1.2.3