Fix GET filter sending a base64 encoded json

Signed-off-by: Thibaut CHARLES cromfr@gmail.com
This commit is contained in:
Crom (Thibaut CHARLES) 2018-01-12 18:42:14 +01:00
parent 350e6cbfed
commit 65e36484d6
No known key found for this signature in database
GPG key ID: 45A3D5F880B9E6D0

View file

@ -17,8 +17,6 @@ package routing
import (
"net/http"
"encoding/json"
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
"github.com/matrix-org/dendrite/clientapi/auth/storage/accounts"
"github.com/matrix-org/dendrite/clientapi/httputil"
@ -60,14 +58,9 @@ func GetFilter(
}
}
filterJSON, err := json.Marshal(filter)
if err != nil {
return httputil.LogThenError(req, err)
}
return util.JSONResponse{
Code: 200,
JSON: filterJSON,
JSON: filter,
}
}