Merge branch 'jonas_master' into refactor_test_1

This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-05-24 10:00:03 -03:00
12 changed files with 97 additions and 40 deletions

View File

@@ -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")
}