mirror of
https://github.com/sprockets/sprockets.mixins.http.git
synced 2024-11-14 19:29:31 +00:00
commit
df5103fcb9
1 changed files with 6 additions and 0 deletions
|
@ -144,6 +144,12 @@ class HTTPClientMixin(object):
|
|||
method, url, attempt + 1,
|
||||
max_http_attempts, error)
|
||||
continue
|
||||
warning_header = response.headers.get('Warning')
|
||||
if warning_header is not None:
|
||||
LOGGER.warning('HTTP Warning Header for %s to %s, '
|
||||
'attempt %i of %i (%s): %s',
|
||||
method, url, response.code, attempt + 1,
|
||||
max_http_attempts, warning_header)
|
||||
if 200 <= response.code < 400:
|
||||
raise gen.Return(
|
||||
HTTPResponse(
|
||||
|
|
Loading…
Reference in a new issue