Replies: 2 comments 1 reply
-
Hi @danbo0001, @ibnuda @ggnaegi, |
Beta Was this translation helpful? Give feedback.
0 replies
-
@raman-m Yes, it should be related. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an Ocelot gateway receiving http traffic using the http2 protocol configured as follows:
The Ocelot host endpoint protocol set to Http2 in
appsettings.json
:The Ocelot configuration file has one route which has the scheme and version set:
The downstream host is configured with two listeners, one for each http protocol:
In the trace log, I can see the test request comes in to Ocelot as http2, but then the downstream host trace log shows an error indicating it was received as http1.1:
Just out of interest, I changed just the route downstream port from 5003 to 5002 (i.e. left the http version at 2.0) and the downstream host trace confirmed it received the request as http1.1. There are no errors in the log and no entries saying why the protocol might have been changed:-
I think I have configured everything correctly so I am wondering if there is a limitation in Ocelot in that it will only forward downstream as http2 if the downstream scheme is https or maybe I need extra configuration to make it work in this way.
Can anyone help?
Beta Was this translation helpful? Give feedback.
All reactions