mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
pop_path_info
This was removed in werkzeug 2.3 and exists as shift_pop_info in wsgiref: https://github.com/pallets/werkzeug/pull/2415
This commit is contained in:
parent
3ccc7ea759
commit
e824ffda8a
@ -1,7 +1,7 @@
|
|||||||
from gevent.monkey import patch_all; patch_all()
|
from gevent.monkey import patch_all; patch_all()
|
||||||
|
|
||||||
from werkzeug.routing import Map, Rule, RequestRedirect, Submount
|
from werkzeug.routing import Map, Rule, RequestRedirect, Submount
|
||||||
from werkzeug.wsgi import pop_path_info
|
from wsgiref.util import shift_path_info
|
||||||
from six.moves.urllib.parse import urljoin, parse_qsl
|
from six.moves.urllib.parse import urljoin, parse_qsl
|
||||||
from six import iteritems
|
from six import iteritems
|
||||||
from warcio.utils import to_native_str
|
from warcio.utils import to_native_str
|
||||||
@ -558,9 +558,9 @@ class FrontEndApp(object):
|
|||||||
return
|
return
|
||||||
|
|
||||||
if coll != '$root':
|
if coll != '$root':
|
||||||
pop_path_info(environ)
|
shift_path_info(environ)
|
||||||
if record:
|
if record:
|
||||||
pop_path_info(environ)
|
shift_path_info(environ)
|
||||||
|
|
||||||
paths = [self.warcserver.root_dir]
|
paths = [self.warcserver.root_dir]
|
||||||
|
|
||||||
@ -669,7 +669,7 @@ class FrontEndApp(object):
|
|||||||
|
|
||||||
lang = args.pop('lang', self.default_locale)
|
lang = args.pop('lang', self.default_locale)
|
||||||
if lang:
|
if lang:
|
||||||
pop_path_info(environ)
|
shift_path_info(environ)
|
||||||
environ['pywb_lang'] = lang
|
environ['pywb_lang'] = lang
|
||||||
|
|
||||||
response = endpoint(environ, **args)
|
response = endpoint(environ, **args)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user