Kaydet (Commit) c680ae80 authored tarafından Fred Drake's avatar Fred Drake

Added missing parameter in call to http_error_default();

reported by Neal Norwitz.
üst 2f8f4d36
......@@ -584,7 +584,7 @@ class FancyURLopener(URLopener):
http://www.ics.uci.edu/pub/ietf/http/draft-ietf-http-v10-spec-00.txt"""
if not headers.has_key('www-authenticate'):
URLopener.http_error_default(self, url, fp,
errmsg, headers)
errcode, errmsg, headers)
stuff = headers['www-authenticate']
import re
match = re.match('[ \t]*([^ \t]+)[ \t]+realm="([^"]*)"', stuff)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment