Check if cookie exists

This commit is contained in:
Peter Stuifzand 2018-07-08 14:50:09 +02:00
parent 7b2a591902
commit 5b30d00838

View File

@ -90,9 +90,9 @@ func (h *mainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
http.SetCookie(w, newCookie)
}
} else {
sessionVar = c.Value
}
fmt.Fprintln(w, "<h1>Ekster - Microsub server</h1>")
fmt.Fprintln(w, `<p><a href="/settings">Settings</a></p>`)