Skip to content

Commit

Permalink
NOSSUE - Sync API Dcoumentation (absmach#1754)
Browse files Browse the repository at this point in the history
* Sync Things API Documentation

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>

* Fix Update Secret SDK

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>

* Fix Update Password CLI

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>

* Fix decodeUpdateClientCredentials Omission

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>

* Fix Failing Update Client Tests

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>

---------

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: SammyOina <sammyoina@gmail.com>
  • Loading branch information
rodneyosodo authored and SammyOina committed Apr 28, 2023
1 parent df86a9f commit 5c85753
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions things/policies/api/http/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ func decodeDisconnectThing(_ context.Context, r *http.Request) (interface{}, err
return nil, errors.Wrap(errors.ErrMalformedEntity, err)
}
}
if r.Body != http.NoBody {
if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
return nil, errors.Wrap(errors.ErrMalformedEntity, err)
}
}

return req, nil
}
Expand Down

0 comments on commit 5c85753

Please sign in to comment.