[New-bugs-announce] [issue11153] urllib2 basic auth parser handle unquoted realm in WWW-Authenticate header

Matthew M. Boedicker report at bugs.python.org
Tue Feb 8 21:41:19 CET 2011


New submission from Matthew M. Boedicker <matthewm at boedicker.org>:

I am working with a web server that does not quote the realm in the WWW-Authenticate header.

This patch will make the realm parsing handle unquoted realm as well as some other invalid variations.

I tried doing it by modifying the regex only but could not get it to handle all cases.

----------
components: Library (Lib)
files: urllib2_unquoted_realm.diff
keywords: patch
messages: 128190
nosy: mmb
priority: normal
severity: normal
status: open
title: urllib2 basic auth parser handle unquoted realm in WWW-Authenticate header
Added file: http://bugs.python.org/file20719/urllib2_unquoted_realm.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11153>
_______________________________________


More information about the New-bugs-announce mailing list