diff options
-rw-r--r-- | httpfs/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/httpfs/__init__.py b/httpfs/__init__.py index 1b4ede3..d877f3e 100644 --- a/httpfs/__init__.py +++ b/httpfs/__init__.py @@ -208,7 +208,8 @@ class RelativeLinkCollector(HTMLParser): attrs = dict(attrs) if "href" in attrs: href = attrs["href"] - if "/" in href[:-1] or href[0] == "." or href == "/": + if "/" in href[:-1] or href[0] == "." \ + or href[0] == "?" or href == "/": return if href[-1:] == "/": |