mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
bugfix: send response back correctly
This commit is contained in:
parent
155b8c7cae
commit
c887ba31ea
|
|
@ -125,11 +125,7 @@ func federatedSpacesHandler(
|
||||||
fsAPI: fsAPI,
|
fsAPI: fsAPI,
|
||||||
inMemoryBatchCache: inMemoryBatchCache,
|
inMemoryBatchCache: inMemoryBatchCache,
|
||||||
}
|
}
|
||||||
res := w.walk()
|
return w.walk()
|
||||||
return util.JSONResponse{
|
|
||||||
Code: 200,
|
|
||||||
JSON: res,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func spacesHandler(
|
func spacesHandler(
|
||||||
|
|
@ -158,11 +154,7 @@ func spacesHandler(
|
||||||
fsAPI: fsAPI,
|
fsAPI: fsAPI,
|
||||||
inMemoryBatchCache: inMemoryBatchCache,
|
inMemoryBatchCache: inMemoryBatchCache,
|
||||||
}
|
}
|
||||||
res := w.walk()
|
return w.walk()
|
||||||
return util.JSONResponse{
|
|
||||||
Code: 200,
|
|
||||||
JSON: res,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue