Skip to content

Commit

Permalink
rewriterapp: readd range: only convert to 206 if response is 200
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Mar 21, 2017
1 parent 5671017 commit 55def50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywb/urlrewrite/rewriterapp.py
Expand Up @@ -211,7 +211,7 @@ def render_content(self, wb_url, kwargs, environ):

self._add_custom_params(cdx, r.headers, kwargs)

if readd_range:
if readd_range and record.http_headers.get_statuscode() == '200':
content_length = (record.http_headers.
get_header('Content-Length'))
try:
Expand Down

0 comments on commit 55def50

Please sign in to comment.