Merge branch 'pac+file' of https://github.com/kiryl/qutebrowser into kiryl-pac+file

This commit is contained in:
Florian Bruhin 2017-02-22 07:35:06 +01:00
commit 5379138c17
2 changed files with 2 additions and 1 deletions

View File

@ -613,7 +613,7 @@ def proxy_from_url(url):
raise InvalidUrlError(url)
scheme = url.scheme()
if scheme in ['pac+http', 'pac+https']:
if scheme in ['pac+http', 'pac+https', 'pac+file']:
return pac.PACFetcher(url)
types = {

View File

@ -1483,6 +1483,7 @@ class TestProxy:
'none',
'http://user:pass@example.com:2323/',
'pac+http://example.com/proxy.pac',
'pac+file:///tmp/proxy.pac'
])
def test_validate_valid(self, klass, val):
klass(none_ok=True).validate(val)