Accept backend protocol on any case (#10460)
This commit is contained in:
parent
ae86c07298
commit
1fbfcbd907
3 changed files with 40 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue