mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-29 01:21:21 +02:00
@@ -313,7 +313,6 @@ bool rest_supported_content_type(const char *content_type) {
|
|||||||
"application/json",
|
"application/json",
|
||||||
"application/x-pem-file"
|
"application/x-pem-file"
|
||||||
};
|
};
|
||||||
printf("[rest] Checking content type: %s\n", content_type);
|
|
||||||
for (size_t i = 0; i < sizeof(supported_types) / sizeof(supported_types[0]); i++) {
|
for (size_t i = 0; i < sizeof(supported_types) / sizeof(supported_types[0]); i++) {
|
||||||
if (strncasecmp(content_type, supported_types[i], strlen(supported_types[i])) == 0) {
|
if (strncasecmp(content_type, supported_types[i], strlen(supported_types[i])) == 0) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user