Skip to content

Commit

Permalink
gcoap: accept resources in any order
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Sep 26, 2022
1 parent 2039a10 commit fec5910
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions sys/net/application_layer/gcoap/gcoap.c
Original file line number Diff line number Diff line change
Expand Up @@ -744,13 +744,9 @@ static int _request_matcher_default(gcoap_listener_t *listener,
int res = coap_match_path(*resource, uri);

/* URI mismatch */
if (res > 0) {
if (res != 0) {
continue;
}
/* resources expected in alphabetical order */
else if (res < 0) {
break;
}

/* potential match, check for method */
if (! ((*resource)->methods & method_flag)) {
Expand Down

0 comments on commit fec5910

Please sign in to comment.