jokyo3 commited on
Commit
4a62936
·
verified ·
1 Parent(s): 93dad46

Update main.go

Browse files
Files changed (1) hide show
  1. main.go +1 -1
main.go CHANGED
@@ -66,7 +66,7 @@ func handleGET(w http.ResponseWriter, req *http.Request) {
66
  w.Write([]byte("Invalid password"))
67
  return
68
  }
69
- result := map[string]string{"cookies": strValues}
70
  w.Header().Set("Content-Type", "application/json")
71
  w.Write([]byte(fmt.Sprintf("%v", result)))
72
  }
 
66
  w.Write([]byte("Invalid password"))
67
  return
68
  }
69
+ result := `{"result": {"cookies": "` + strValues + `"}}`
70
  w.Header().Set("Content-Type", "application/json")
71
  w.Write([]byte(fmt.Sprintf("%v", result)))
72
  }