Get without id == trace since browsers dont support trace

This commit is contained in:
Bel LaPointe
2020-07-24 23:25:32 -06:00
parent 55d8cf5d43
commit 663579aeae
2 changed files with 18 additions and 2 deletions

View File

@@ -44,8 +44,7 @@ func who(g storage.Graph, w http.ResponseWriter, r *http.Request) error {
func whoGet(namespace string, g storage.Graph, w http.ResponseWriter, r *http.Request) error {
id, err := getID(r)
if err != nil {
w.WriteHeader(http.StatusBadRequest)
return json.NewEncoder(w).Encode(map[string]string{"error": err.Error()})
return whoTrace(namespace, g, w, r)
}
_, light := r.URL.Query()["light"]