urlmatch: Increase debuggability

This commit is contained in:
Florian Bruhin 2018-02-15 16:22:29 +01:00
parent faeca30dfa
commit 9092c3a87f

View File

@ -236,7 +236,12 @@ class UrlPattern:
if self._match_all:
return True
# FIXME ignore host for file:// like Chromium?
return (self._matches_host(qurl.host()) and
self._matches_port(qurl.port()) and
self._matches_path(qurl.path()))
# FIXME ignore for file:// like Chromium?
if not self._matches_host(qurl.host()):
return False
if not self._matches_port(qurl.port()):
return False
if not self._matches_path(qurl.path()):
return False
return True