diff options
author | ianb <devnull@localhost> | 2006-11-01 20:43:54 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2006-11-01 20:43:54 +0000 |
commit | ab8daf833d5671e99a2cbacbbdb479761581e36a (patch) | |
tree | 5c4e24e5c92bebdc8b3651f872e00349dc64854c | |
parent | de05e8615407091848983c3be75e5f0441e27e38 (diff) | |
download | paste-ab8daf833d5671e99a2cbacbbdb479761581e36a.tar.gz |
Make WWW-Authenticate header not required for httpexceptions.HTTPUnauthorized
-rw-r--r-- | docs/news.txt | 7 | ||||
-rw-r--r-- | paste/httpexceptions.py | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/docs/news.txt b/docs/news.txt index d670c7c..075aaa6 100644 --- a/docs/news.txt +++ b/docs/news.txt @@ -3,6 +3,13 @@ News .. contents:: +svn trunk +--------- + +* Changed ``paste.httpexceptions.HTTPUnauthorized`` so that the + ``WWW-Authenticate`` header is not required. 401 responses don't + *have* to have that header. + 1.0 --- diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py index 5510596..0910b94 100644 --- a/paste/httpexceptions.py +++ b/paste/httpexceptions.py @@ -413,7 +413,6 @@ class HTTPBadRequest(HTTPClientError): pass class HTTPUnauthorized(HTTPClientError): - required_headers = ('WWW-Authenticate',) code = 401 title = 'Unauthorized' explanation = ( |