fix(scheme): fix default scheme

This commit is contained in:
zhouzb 2021-01-27 19:19:15 +08:00 committed by Zaiming Shi
parent 92d307b1b3
commit e6235d3bc9
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ translate_env(EnvName) ->
URL = proplists:get_value(url, Req),
#{host := Host0,
path := Path0,
scheme := Scheme} = URIMap = uri_string:parse(uri_string:normalize(add_default_scheme(URL))),
scheme := Scheme} = URIMap = uri_string:parse(add_default_scheme(uri_string:normalize(URL))),
Port = maps:get(port, URIMap, case Scheme of
"https" -> 443;
"http" -> 80