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

dockerfile: update to latest pywb

urlrewrite: upstream url avoid adding empty '&'
This commit is contained in:
Ilya Kreymer 2016-10-02 11:29:51 -07:00
parent 5c499753f8
commit ccc13b427f
2 changed files with 5 additions and 4 deletions

View File

@ -4,8 +4,8 @@ FROM python:3.5.2
RUN pip install gevent uwsgi bottle urllib3 youtube-dl
#RUN pip install git+https://github.com/ikreymer/pywb.git@develop#egg=pywb-0.32.0
RUN pip install pywb
RUN pip install git+https://github.com/ikreymer/pywb.git@develop#egg=pywb-0.32.2
#RUN pip install pywb
RUN pip install git+https://github.com/t0m/pyamf.git@python3

View File

@ -391,8 +391,9 @@ class RewriterApp(object):
def get_upstream_url(self, wb_url, kwargs, params):
base_url = self.get_base_url(wb_url, kwargs)
#params['filter'] = tuple(params['filter'])
base_url += '&' + urlencode(params, True)
param_str = urlencode(params, True)
if param_str:
base_url += '&' + param_str
return base_url
def get_cookie_key(self, kwargs):