Return a 200 status code

This commit is contained in:
Mark Haines 2017-05-19 15:57:56 +01:00
parent cd8d9c49a3
commit 0bb12d5ae7

View file

@ -31,7 +31,7 @@ func LocalKeys(req *http.Request, cfg config.FederationAPI) util.JSONResponse {
if err != nil {
return util.ErrorResponse(err)
}
return util.JSONResponse{JSON: keys}
return util.JSONResponse{Code: 200, JSON: keys}
}
func localKeys(cfg config.FederationAPI, validUntil time.Time) (*gomatrixserverlib.ServerKeys, error) {