mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fix header host
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user