summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2016-10-02 19:43:45 -0600
committerBert JW Regeer <bertjw@regeer.org>2016-10-02 20:26:33 -0600
commit9985dee067cef4d9feabe71f507857102ce1f589 (patch)
tree3fbcc6894d8d0d9c347f7795bfba08288f8c8490
parente0f892bf90ee12e168850877d9deb3f1c7715b77 (diff)
downloadwebob-perf/response.tar.gz
Location header requires a HTTP status code that supports itperf/response
-rw-r--r--tests/test_response.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_response.py b/tests/test_response.py
index a01f717..fd4615a 100644
--- a/tests/test_response.py
+++ b/tests/test_response.py
@@ -976,6 +976,7 @@ def test_cache_control_get():
def test_location():
res = Response()
+ res.status = '301'
res.location = '/test.html'
assert res.location == '/test.html'
req = Request.blank('/')