Fix swagger-ui when "server-proxy-uri" is not set (#857)

This commit is contained in:
Feynman Liang
2017-04-07 08:51:29 -05:00
committed by Joe Nelson
parent 0cf49bb8b6
commit 77af16c9e4
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ app dbStructure conf apiRequest =
let host = configHost conf
port = toInteger $ configPort conf
proxy = pickProxy $ toS <$> configProxyUri conf
uri Nothing = ("http", host, port, "/")
uri Nothing = ("http", host, port, "")
uri (Just Proxy { proxyScheme = s, proxyHost = h, proxyPort = p, proxyPath = b }) = (s, h, p, b)
uri' = uri proxy
encodeApi ti = encodeOpenAPI (M.elems $ dbProcs dbStructure) ti uri'