mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-01-01 01:38:26 +00:00
Don't unmarshal request body twice
This commit is contained in:
parent
b3c0d5375a
commit
87353a1cf0
1 changed files with 0 additions and 4 deletions
|
@ -71,10 +71,6 @@ func UploadCrossSigningDeviceKeys(
|
||||||
}
|
}
|
||||||
AddCompletedSessionStage(sessionID, authtypes.LoginTypePassword)
|
AddCompletedSessionStage(sessionID, authtypes.LoginTypePassword)
|
||||||
|
|
||||||
if err := httputil.UnmarshalJSONRequest(req, &uploadReq.CrossSigningKeys); err != nil {
|
|
||||||
return *err
|
|
||||||
}
|
|
||||||
|
|
||||||
keyserverAPI.PerformUploadDeviceKeys(req.Context(), &uploadReq.PerformUploadDeviceKeysRequest, uploadRes)
|
keyserverAPI.PerformUploadDeviceKeys(req.Context(), &uploadReq.PerformUploadDeviceKeysRequest, uploadRes)
|
||||||
if err := uploadRes.Error; err != nil {
|
if err := uploadRes.Error; err != nil {
|
||||||
switch {
|
switch {
|
||||||
|
|
Loading…
Reference in a new issue