Skip to content

Fix handling of 1xx and 3xx in Rust Reqwest#8551

Closed
gferon wants to merge 7 commits into
OpenAPITools:masterfrom
gferon:rust-small-fixes
Closed

Fix handling of 1xx and 3xx in Rust Reqwest#8551
gferon wants to merge 7 commits into
OpenAPITools:masterfrom
gferon:rust-small-fixes

Conversation

@gferon

@gferon gferon commented Jan 27, 2021

Copy link
Copy Markdown
Contributor

An Err(...) was returned for 1xx and 3xx status codes, which are totally valid response code and should be returned with Ok(...) instead.

Also removed a redundant use (found using clippy).

I filed this on the 5.1.x branch since I think it qualifies as a hotfix, but feel free to change it to something more appropriate.

Tagging @farcaller for the Rust review.

@gferon gferon requested a review from jimschubert as a code owner January 27, 2021 13:45
@wing328 wing328 changed the base branch from 5.1.x to master January 28, 2021 06:19
@wing328

wing328 commented Jan 28, 2021

Copy link
Copy Markdown
Member

@gferon thanks for the PR, which looks like a bug fix to me so I've retargeted this PR to the current master instead.

cc @frol (2017/07) @farcaller (2017/08) @richardwhiuk (2019/07) @paladinzh (2020/05)

@gferon

gferon commented Jan 28, 2021

Copy link
Copy Markdown
Contributor Author

Thanks! I'll rebase the branch on master then so the diff looks better.

@wing328

wing328 commented Jan 29, 2021

Copy link
Copy Markdown
Member

Closing this one as I've cherry-pick your commits and filed #8574 instead. If no further feedback from anyone, I'll merge that PR over the weekend.

@wing328 wing328 closed this Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants