fix: options should accessed with get_option...

This commit is contained in:
Barış Metin
2006-07-04 11:11:20 +00:00
parent 1369d5695b
commit 7ef491e194
+2 -2
View File
@@ -63,8 +63,8 @@ class Fetcher:
if not isinstance(url, URI):
url = URI(url)
if ctx.config.options.authinfo:
url.set_auth_info(ctx.config.options.authinfo)
if ctx.config.get_option("authinfo"):
url.set_auth_info(ctx.config.get_option("authinfo"))
self.resume = resume
self.scheme = url.scheme()