Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vasicvuk
Copy link
Contributor

Ocelot websocket middleware did not work for STOMP over websocket. After investigation i found out that the issue was with subprotocol and headers that are send and filtered.

I the end i used ASP.Net core proxy as a reference to solve the issue here:

https://github.com/aspnet/Proxy/blob/3015029f5169b699dfa16bcf85cfc7ca0aaddae7/src/Microsoft.AspNetCore.Proxy/ProxyAdvancedExtensions.cs

So i modified the code to use the way ASP.Net proxy handles this.

Fixes / New Feature #

Proposed Changes

Ocelot websocket middleware did not work for STOMP over websocket. After investigation i found out that the issue was with subprotocol and headers that are send and filtered. 

I the end i used ASP.Net core proxy as a reference to solve the issue here:

https://github.com/aspnet/Proxy/blob/3015029f5169b699dfa16bcf85cfc7ca0aaddae7/src/Microsoft.AspNetCore.Proxy/ProxyAdvancedExtensions.cs

So i modified the code to use the way ASP.Net proxy handles this.
@TomPallister
Copy link
Member

@vasicvuk thanks for the PR, I will check it out ASAP!!

@TomPallister
Copy link
Member

@vasicvuk this looks OK to me and all the tests are passing, will merge.

@TomPallister TomPallister merged commit b58b381 into ThreeMammals:develop Sep 30, 2018
@vasicvuk vasicvuk deleted the patch-1 branch September 30, 2018 08:38
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.

2 participants