fix header host

This commit is contained in:
Pedro Nasser
2016-07-24 18:09:16 -03:00
parent 14cc57fd9c
commit 1e686a616f

View File

@@ -34,7 +34,7 @@ func handleRunner(c *gin.Context) {
appName := c.Param("app")
if appName == "" {
host := strings.Split(c.Request.Header.Get("Host"), ":")[0]
host := strings.Split(c.Request.Host, ":")[0]
appName = strings.Split(host, ".")[0]
}