diff options
author | ianb <devnull@localhost> | 2007-01-18 17:27:12 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2007-01-18 17:27:12 +0000 |
commit | 7cec46372848f00b7df558dcb494012c93472159 (patch) | |
tree | 5c3150a329e82826d2db8c574286fb5fc320fae2 /paste/lint.py | |
parent | 1f5a6cc32b2ebfd186911059153a95803f3a9e09 (diff) | |
download | paste-7cec46372848f00b7df558dcb494012c93472159.tar.gz |
201 Created does not expect a response body
Diffstat (limited to 'paste/lint.py')
-rw-r--r-- | paste/lint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/lint.py b/paste/lint.py index 480ab1a..cb97121 100644 --- a/paste/lint.py +++ b/paste/lint.py @@ -402,7 +402,7 @@ def check_content_type(status, headers): code = int(status.split(None, 1)[0]) # @@: need one more person to verify this interpretation of RFC 2616 # http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html - NO_MESSAGE_BODY = (204, 304) + NO_MESSAGE_BODY = (201, 204, 304) for name, value in headers: if name.lower() == 'content-type': if code not in NO_MESSAGE_BODY: |