Skip to content

[4.x] Handle multiple 1xx responses #8763

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

Open
wants to merge 2 commits into
base: okhttp_4x
Choose a base branch
from

Conversation

yschimke
Copy link
Collaborator

@yschimke yschimke commented May 5, 2025

Cherry pick of #8569

Fixes #8568 on 4.x branch

yschimke added 2 commits May 5, 2025 22:09
This change updates the client to handle multiple 1xx (Processing etc) responses from the server. The client now waits for the final response with a status code other than 1xx before proceeding.

From https://datatracker.ietf.org/doc/html/rfc7231#section-6.2

>    A client MUST be able to parse one or more 1xx responses received
   prior to a final response, even if the client does not expect one.  A
   user agent MAY ignore unexpected 1xx responses.

fixes square#8568

(cherry picked from commit f1e6d01)
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.

2 participants