add stderr redirection, add logo

This commit is contained in:
Aynakeya
2022-07-15 16:30:50 -07:00
parent 8f2b975455
commit 24457e0acd
19 changed files with 102 additions and 117 deletions

View File

@@ -50,6 +50,8 @@ func NewWebInfoServer(port int) *WebInfoServer {
func (s *WebInfoServer) getInfo(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.Header().Set("Access-Control-Allow-Origin", "*")
//w.Header().Set("Access-Control-Allow-Headers", "Content-Type")
d, _ := json.Marshal(s.Info)
_, err := w.Write(d)
if err != nil {