Allow sending CONNECT frame without `host` header
See original GitHub issueProblem/use case that this feature is meant to solve/enable
Currently the server I am connecting to has a little problem with host
header inside CONNECT frame. If header exist, i got Bad Connect
error from server. After cut this header everything works fine.
I am not sure if this header is required by stomp protocol, but some other libraries does not have such a requirement eg. popular library https://github.com/NaikSoftware/StompProtocolAndroid
Describe the solution you’d like Allow to send connect without host header
Describe alternatives you’ve considered
Is there a way -maybe inconvenient- to achieve your goal at the moment, or a workaround?
At this moment i cut this off this header inside override suspend fun sendText(frameText: String)
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
X-Frame-Options - HTTP - MDN Web Docs
The X-Frame-Options HTTP response header can be used to indicate whether or not a browser should be allowed to render a page in...
Read more >HTTP/2 Host header disallowed · Issue #29858 · nodejs/node
JS currently treats Host as a connection header, and connection headers can't ... and END_STREAM flags set; no CONTINUATION frames are sent.
Read more >Mitigating framesniffing with the X-Frame-Options header
The X-Frame-Options header can be used to control whether a page can be placed in an IFRAME. Because the Framesniffing technique relies on...
Read more >RFC 7540: Hypertext Transfer Protocol Version 2 (HTTP/2)
The first HTTP/2 frame sent by the server MUST be a server connection preface ... This allows a header block to be logically...
Read more >HTTP headers and Application Load Balancers
Request is sent with no XFF header, GET /index.html HTTP/1.1 Host: example.com, X-Forwarded-For: 127.0.0.1 ; Request is sent with an XFF header and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Everything works fine, thank you very much for help.
I totally understand, it’s not ideal. Also it means every single frame going through your websocket will go through this
replace()
call, which is really not nice.I don’t believe this feature can hurt users of STOMP 1.1+ (they just shouldn’t set this header to
null
) but on the flip side it can definitely help people in your situation. So I will make it possible to remove it.