Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only expect 206 if a range header is sent #3

Merged
merged 1 commit into from
Nov 7, 2014
Merged

Conversation

technoweenie
Copy link
Owner

This prevents httpretry from erroring when it was unable to read any bytes from the first 200 response. It would assume 206 was the correct response on the first retry, and would return:

Expected status code 206, got 200

This changes the code to expect 206 only if a Range header is sent in the request.

technoweenie added a commit that referenced this pull request Nov 7, 2014
Only expect 206 if a range header is sent
@technoweenie technoweenie merged commit d8c8d07 into master Nov 7, 2014
@technoweenie technoweenie deleted the fix-repeat-200 branch November 7, 2014 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant