Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect with ExtraHeaders User Agent. #373

Open
sqpp opened this issue May 4, 2024 · 1 comment
Open

Can't connect with ExtraHeaders User Agent. #373

sqpp opened this issue May 4, 2024 · 1 comment

Comments

@sqpp
Copy link

sqpp commented May 4, 2024

Issue is present with given User-Agent, the agent does not matter, all seems to fail.

var options = new SocketIOOptions()
   {
      AutoUpgrade = true,
      Path = "/socket.io/",
      Reconnection = false,
      Transport = SocketIOClient.Transport.TransportProtocol.WebSocket,
      ExtraHeaders = new Dictionary<string, string>()
       {
         ["User-Agent"] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.50",
        }
    };

When this extra option is removed, the request goes through fine.

Running 3.0.6.

Any idea?

@doghappy
Copy link
Owner

doghappy commented May 6, 2024

Here is the Change log:

[3.0.7] - 2022-11-29

Added

  • Support custom User-Agent header

Changed

  • Fixed OnAny does not fire when received binary messages
  • Update NuGet dependencies
  • Fixed http pooling concurrency issues
  • Improve performance

that means you need upgrade to 3.0.7 at least

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

No branches or pull requests

2 participants