diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-07-13 15:08:05 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-07-13 15:20:43 +0300 |
commit | 9980b52ed2d032a3e297dbeead6baf44983b481c (patch) | |
tree | 6dbc5f91f87d70fee29559a56af3c9e16a819960 | |
parent | 1b7b80a20302f95656176db150db9c28d612fd2b (diff) | |
download | qvisqve-9980b52ed2d032a3e297dbeead6baf44983b481c.tar.gz |
Fix: how content types are checked (ignore charset)
-rw-r--r-- | yarns/900-implements.yarn | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn index 53f675a..2f3d42e 100644 --- a/yarns/900-implements.yarn +++ b/yarns/900-implements.yarn @@ -178,7 +178,7 @@ This chapter shows the scenario step implementations. IMPLEMENTS THEN Content-Type is (\S+) wanted = get_next_match() headers = V['headers'] - assertEqual(headers['Content-Type'], wanted) + assertEqual(headers['Content-Type'][:len(wanted)], wanted) IMPLEMENTS THEN Location header is (\S+) # FIXME: This is a dummy implemantation, does not do anything real. |