Don't unmarshal request body twice

This commit is contained in:
Neil Alexander 2021-07-28 13:15:54 +01:00
parent b3c0d5375a
commit 87353a1cf0
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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 {