diff options
Diffstat (limited to 'api4/oauth.go')
-rw-r--r-- | api4/oauth.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/api4/oauth.go b/api4/oauth.go index 626a6065f..402651b92 100644 --- a/api4/oauth.go +++ b/api4/oauth.go @@ -323,7 +323,9 @@ func authorizeOAuthPage(c *Context, w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Security-Policy", "frame-ancestors 'self'") w.Header().Set("Content-Type", "text/html") w.Header().Set("Cache-Control", "no-cache, max-age=31556926, public") - http.ServeFile(w, r, utils.FindDir(model.CLIENT_DIR)+"root.html") + + staticDir, _ := utils.FindDir(model.CLIENT_DIR) + http.ServeFile(w, r, staticDir+"root.html") } func getAccessToken(c *Context, w http.ResponseWriter, r *http.Request) { |