mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
dockerfile: update to latest pywb
urlrewrite: upstream url avoid adding empty '&'
This commit is contained in:
parent
5c499753f8
commit
ccc13b427f
@ -4,8 +4,8 @@ FROM python:3.5.2
|
|||||||
|
|
||||||
RUN pip install gevent uwsgi bottle urllib3 youtube-dl
|
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 git+https://github.com/ikreymer/pywb.git@develop#egg=pywb-0.32.2
|
||||||
RUN pip install pywb
|
#RUN pip install pywb
|
||||||
|
|
||||||
RUN pip install git+https://github.com/t0m/pyamf.git@python3
|
RUN pip install git+https://github.com/t0m/pyamf.git@python3
|
||||||
|
|
||||||
|
@ -391,8 +391,9 @@ class RewriterApp(object):
|
|||||||
|
|
||||||
def get_upstream_url(self, wb_url, kwargs, params):
|
def get_upstream_url(self, wb_url, kwargs, params):
|
||||||
base_url = self.get_base_url(wb_url, kwargs)
|
base_url = self.get_base_url(wb_url, kwargs)
|
||||||
#params['filter'] = tuple(params['filter'])
|
param_str = urlencode(params, True)
|
||||||
base_url += '&' + urlencode(params, True)
|
if param_str:
|
||||||
|
base_url += '&' + param_str
|
||||||
return base_url
|
return base_url
|
||||||
|
|
||||||
def get_cookie_key(self, kwargs):
|
def get_cookie_key(self, kwargs):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user