mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-29 08:18:27 +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)
|
||||
|
||||
if err := httputil.UnmarshalJSONRequest(req, &uploadReq.CrossSigningKeys); err != nil {
|
||||
return *err
|
||||
}
|
||||
|
||||
keyserverAPI.PerformUploadDeviceKeys(req.Context(), &uploadReq.PerformUploadDeviceKeysRequest, uploadRes)
|
||||
if err := uploadRes.Error; err != nil {
|
||||
switch {
|
||||
|
|
Loading…
Reference in a new issue