I'm using HAProxy 1.6
I'm forcing https usage. Therefore in my backend I'm redirecting http to https. For that I'm using the following code:
backend my-app-name
redirect scheme https if !{ ssl_fc }
[...]
This is working well but if my http request is done using POST Method it seems that redirect scheme will change the method to GET.
I saw that in the documentation of HAProxy concerning HTTP redirection we can change the HTTP code to 308. But I cannot change the behavior of my current application.
How can I redirect to https using HAProxy and keeping my original HTTP Method?