Get without id == trace since browsers dont support trace
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user