mirror of https://github.com/searxng/searxng
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
378 B
Python
15 lines
378 B
Python
10 years ago
|
import re
|
||
|
|
||
|
# https://gitweb.torproject.org/\
|
||
|
# pde/https-everywhere.git/tree/4.0:/src/chrome/content/rules
|
||
|
|
||
|
# HTTPS rewrite rules
|
||
|
https_rules = (
|
||
|
# from
|
||
|
(re.compile(r'^http://(www\.|m\.|)?xkcd\.(?:com|org)/', re.I | re.U),
|
||
|
# to
|
||
|
r'https://\1xkcd.com/'),
|
||
|
(re.compile(r'^https?://(?:ssl)?imgs\.xkcd\.com/', re.I | re.U),
|
||
|
r'https://sslimgs.xkcd.com/'),
|
||
|
)
|