Merge branch 'jonas_master' into refactor_test_1
This commit is contained in:
@@ -11,8 +11,14 @@ func Home(w http.ResponseWriter, r *http.Request) {
|
||||
sessionId := vars["sessionId"]
|
||||
|
||||
s := core.SessionGet(sessionId)
|
||||
if s == nil {
|
||||
// Session doesn't exist (can happen if closing the sessions an reloading the page, or similar).
|
||||
w.WriteHeader(http.StatusNotFound)
|
||||
return
|
||||
}
|
||||
if s.Stack != "" {
|
||||
go core.SessionDeployStack(s)
|
||||
}
|
||||
|
||||
http.ServeFile(w, r, "./www/index.html")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user