mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 08:04:49 +01:00
rangecache: Add check for X-Ignore-Range-Arg header to force ignoring
range= and serving full request. (For use with nginx range cache handling)
This commit is contained in:
parent
881d550abe
commit
80d4fa6e29
@ -55,6 +55,10 @@ class RangeCache(object):
|
||||
if result:
|
||||
range_h, url = result
|
||||
|
||||
if wbrequest.env.get('HTTP_X_IGNORE_RANGE_ARG'):
|
||||
wbrequest.wb_url.url = url
|
||||
return None
|
||||
|
||||
# check for standard range header
|
||||
if not range_h:
|
||||
range_h = wbrequest.env.get('HTTP_RANGE')
|
||||
|
Loading…
x
Reference in New Issue
Block a user