Skip to content

Commit

Permalink
fix(binding-coap): fix ACE behavior on Unauthorized Response
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed May 13, 2023
1 parent f386126 commit bb4b054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/binding_coap/coap_extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ extension ResponseExtension on CoapResponse {
final responsePayload = payload;

if (contentFormat == CoapMediaType.applicationAceCbor &&
unauthorizedAceCodes.contains(contentFormat)) {
unauthorizedAceCodes.contains(responseCode)) {
return AuthServerRequestCreationHint.fromSerialized(
responsePayload.toList(),
);
Expand Down

0 comments on commit bb4b054

Please sign in to comment.