question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow sending CONNECT frame without `host` header

See original GitHub issue

Problem/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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Shusekcommented, Jun 17, 2021

Everything works fine, thank you very much for help.

1reaction
joffrey-bioncommented, Jun 16, 2021

And its works fine, this it’s not a big problem for me but look a bit weird.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found