diff options
author | Tim Burke <tim.burke@gmail.com> | 2016-01-18 11:38:44 -0800 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2016-05-04 15:21:26 -0700 |
commit | fd5579a154694418c66075d97f43e5d9d741058b (patch) | |
tree | 611819f2d2c63159982669a6131306ad5e035209 /examples/stat.py | |
parent | 5050027610cb4c8f20c85b7c60c1cc7f2c44121c (diff) | |
download | python-swiftclient-fd5579a154694418c66075d97f43e5d9d741058b.tar.gz |
Check responses when retrying bodies
Previously, if a Range request came back 200 OK (rather than 206 Partial
Content), we would mangle the response body. This could happen if there
was a middleware that would silently drop Range headers, for example.
Now, if the response does not include a Content-Range header, we will
log a warning and seek to our previous position in the stream. If the
Content-Range header has an unexpected value, we will raise an exception.
Change-Id: I94d4536cc1489968d45a2b6ba7edd70c85800275
Diffstat (limited to 'examples/stat.py')
0 files changed, 0 insertions, 0 deletions