Accept backend protocol on any case (#10460)

This commit is contained in:
Ricardo Katz 2023-09-28 22:20:42 -03:00 committed by GitHub
parent ae86c07298
commit 1fbfcbd907
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 1 deletions

View file

@ -728,7 +728,7 @@ func buildProxyPass(_ string, b, loc interface{}) string {
proxyPass := "proxy_pass"
switch location.BackendProtocol {
switch strings.ToUpper(location.BackendProtocol) {
case autoHTTPProtocol:
proto = "$scheme://"
case httpsProtocol: