mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 00:51:25 +02:00
Accept multiple HTTP methods.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -698,7 +698,7 @@ void rest_handle_request(rest_conn_t *conn) {
|
||||
if (strcmp(routes[i].path, request->path) != 0) {
|
||||
continue;
|
||||
}
|
||||
if (routes[i].method != request->method) {
|
||||
if (!(routes[i].method & request->method)) {
|
||||
path_exists_for_other_method = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user