1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

rewrite: strip www redir check: use re.MULTILINE to include urls that may have a \r

This commit is contained in:
Ilya Kreymer 2016-09-29 15:20:25 -07:00
parent 98e8a75920
commit 4cdb99f415

View File

@ -34,7 +34,7 @@ class CaptureException(WbException):
#=================================================================
class ReplayView(object):
STRIP_SCHEME_WWW = re.compile('^([\w]+:[/]*(?:www[\d]*\.)?)?(.*?)$')
STRIP_SCHEME_WWW = re.compile('^([\w]+:[/]*(?:www[\d]*\.)?)?(.*?)$', re.MULTILINE)
def __init__(self, content_loader, config):
self.content_loader = content_loader