'HTTP/1.1' is not supported

Status(StatusCode="Internal", Detail="Request protocol 'HTTP/1.1' is not supported.")

Whenever I try to use the client and I connect it the the backend that is set up on Azure, I get this error. The project runs on .Net 7, so HTTP/2 should be supported, yet the client keeps using HTTP/1.1 for some reason. Does anyone know what I am doing wrong?

Could you give more context.
What Client / version
some reporduction ?

Nevermind, found out that this is a limitation with Azure Application Gateway.

HTTP/2 protocol support is available to clients that connect to application gateway listeners only. Communication to backend server pools is always HTTP/1.1.