Skip to content

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

Closed
yschimke wants to merge 2 commits intosquare:okhttp_4xfrom
yschimke:fix_100
Closed

[4.x] Handle multiple 1xx responses#8763
yschimke wants to merge 2 commits intosquare:okhttp_4xfrom
yschimke:fix_100

Conversation

@yschimke
Copy link
Copy Markdown
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)
@yschimke
Copy link
Copy Markdown
Collaborator Author

yschimke commented Jul 4, 2025

@swankjesse Should we stop backporting fixes?

@yschimke yschimke closed this Jul 4, 2025
@yschimke yschimke deleted the fix_100 branch August 2, 2025 19:08
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