Don't do URL quoting on file: URLs. Fix for spaces->+ breaking default cover.

This commit is contained in:
Jim Miller 2020-01-02 12:40:31 -06:00
parent b192fd0ad1
commit ac16bfaeb3

View file

@ -1102,7 +1102,8 @@ class Configuration(configparser.SafeConfigParser):
cache hits.
'''
url = quote_plus(ensure_binary(url),safe=';/?:@&=+$,%&#')
if not url.startswith('file:'): # file fetches fail on + for space
url = quote_plus(ensure_binary(url),safe=';/?:@&=+$,%&#')
if self.getConfig('force_https'): ## For developer testing only.
url = url.replace("http:","https:")