Skip to content

Frame FlashSocketClient response body when Content-Length is absent#151

Merged
kevinresol merged 1 commit into
haxetink:masterfrom
kevinresol:fix/flash-socket-body-framing
Jul 13, 2026
Merged

Frame FlashSocketClient response body when Content-Length is absent#151
kevinresol merged 1 commit into
haxetink:masterfrom
kevinresol:fix/flash-socket-body-framing

Conversation

@kevinresol

Copy link
Copy Markdown
Member

FlashSocketClient only handled responses that carried a Content-Length; any response without one failed with the UnprocessableEntity error from getContentLength(), even though the body may be chunked or delimited by connection close.

Framing now matches SocketClient/TcpClient: chunked Transfer-Encoding (case-insensitive) → Chunked.decode, else Content-Length → limit, else read the remaining source until the connection closes.

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@kevinresol
kevinresol merged commit 31256ff into haxetink:master Jul 13, 2026
10 of 15 checks passed
@kevinresol
kevinresol deleted the fix/flash-socket-body-framing branch July 14, 2026 05:54
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.

1 participant