diff options
author | ianb <devnull@localhost> | 2007-10-10 01:20:35 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2007-10-10 01:20:35 +0000 |
commit | 44b344bcffb98c15d93698be4be614eddd3ae12f (patch) | |
tree | 35978969db9a49b0361556e1b38a5d5bef74d802 /paste/lint.py | |
parent | a11c498781b471b9c644681b9cd554b119f22398 (diff) | |
download | paste-44b344bcffb98c15d93698be4be614eddd3ae12f.tar.gz |
Don't give an error when a 201 response has a Content-Type
Diffstat (limited to 'paste/lint.py')
-rw-r--r-- | paste/lint.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/lint.py b/paste/lint.py index 6ed591b..45633ff 100644 --- a/paste/lint.py +++ b/paste/lint.py @@ -403,9 +403,10 @@ def check_content_type(status, headers): # @@: need one more person to verify this interpretation of RFC 2616 # http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html NO_MESSAGE_BODY = (201, 204, 304) + NO_MESSAGE_TYPE = (204, 304) for name, value in headers: if name.lower() == 'content-type': - if code not in NO_MESSAGE_BODY: + if code not in NO_MESSAGE_TYPE: return assert 0, (("Content-Type header found in a %s response, " "which must not return content.") % code) |