Skip to content

test: accept mixed-case WebSocket response field names - #1895

Open
He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:test/websocket-client-mixed-case-field-names
Open

He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:test/websocket-client-mixed-case-field-names

Conversation

@He-Pin

@He-Pin He-Pin commented Nov 29, 2026

Copy link
Copy Markdown
Member

Motivation

The client handshake tests vary the values of the required response fields, but don't explicitly vary the spelling of their names.

Modification

Send an ordinary HTTP/1.1 101 response with mixed-case spelling of Upgrade, Connection, and Sec-WebSocket-Accept through the existing WebSocket client test fixture. Assert a successful upgrade and that the application receives a literal text message.

Result

No production changes. The named WebSocketClientSpec test passed on JDK 21 and Scala 2.13.18 (1/1); scoped formatter check passed. This is an in-memory client-stack test, not a TLS or TCP test.

References

RFC 9110 §5.1, RFC 6455 §4.1.

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