aboutsummaryrefslogtreecommitdiff
path: root/src/utils/http.py
diff options
context:
space:
mode:
authorGravatar Patrick Nappa2019-05-03 13:50:51 +1000
committerGravatar Patrick Nappa2019-05-03 13:50:51 +1000
commit2c344c9ddd5e12e95d4317bcd0207ca17e8e52b6 (patch)
treea7bea2dc6103b3e0088bcd9d28b6d3f4f315b151 /src/utils/http.py
parentensure that non-url characters not separated by whitespace aren't consumed (diff)
signature
forgot the beautiful %
Diffstat (limited to 'src/utils/http.py')
-rw-r--r--src/utils/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/http.py b/src/utils/http.py
index ac02c41d..0488b0af 100644
--- a/src/utils/http.py
+++ b/src/utils/http.py
@@ -4,7 +4,7 @@ import json as _json
import bs4, netifaces, requests
from src import utils
-REGEX_URL = re.compile("https?://[A-Z0-9{}]+".format(re.escape("-._~:/?#[]@!$&'()*+,;=")), re.I)
+REGEX_URL = re.compile("https?://[A-Z0-9{}]+".format(re.escape("-._~:/%?#[]@!$&'()*+,;=")), re.I)
USER_AGENT = ("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 "
"(KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36")