UNSUPPORTED_MADIA_TYPE is a typo

This commit is contained in:
powermik 2014-08-04 20:14:40 +02:00 committed by Ralf Schlatterbeck
parent 21bbe79079
commit 8bb7d82a2d
4 changed files with 9 additions and 9 deletions

View file

@ -329,7 +329,7 @@ temperature_handler(void* request, void* response, uint8_t *buffer, uint16_t pre
} }
else else
{ {
REST.set_response_status(response, REST.status.UNSUPPORTED_MADIA_TYPE); REST.set_response_status(response, REST.status.UNSUPPORTED_MEDIA_TYPE);
const char *msg = "Supporting content-types text/plain and application/json"; const char *msg = "Supporting content-types text/plain and application/json";
REST.set_response_payload(response, msg, strlen(msg)); REST.set_response_payload(response, msg, strlen(msg));
} }
@ -364,7 +364,7 @@ battery_handler(void* request, void* response, uint8_t *buffer, uint16_t preferr
} }
else else
{ {
REST.set_response_status(response, REST.status.UNSUPPORTED_MADIA_TYPE); REST.set_response_status(response, REST.status.UNSUPPORTED_MEDIA_TYPE);
const char *msg = "Supporting content-types text/plain and application/json"; const char *msg = "Supporting content-types text/plain and application/json";
REST.set_response_payload(response, msg, strlen(msg)); REST.set_response_payload(response, msg, strlen(msg));
} }

View file

@ -337,7 +337,7 @@ temperature_handler(void* request, void* response, uint8_t *buffer, uint16_t pre
} }
else else
{ {
REST.set_response_status(response, REST.status.UNSUPPORTED_MADIA_TYPE); REST.set_response_status(response, REST.status.UNSUPPORTED_MEDIA_TYPE);
const char *msg = "Supporting content-types text/plain and application/json"; const char *msg = "Supporting content-types text/plain and application/json";
REST.set_response_payload(response, msg, strlen(msg)); REST.set_response_payload(response, msg, strlen(msg));
} }
@ -372,7 +372,7 @@ battery_handler(void* request, void* response, uint8_t *buffer, uint16_t preferr
} }
else else
{ {
REST.set_response_status(response, REST.status.UNSUPPORTED_MADIA_TYPE); REST.set_response_status(response, REST.status.UNSUPPORTED_MEDIA_TYPE);
const char *msg = "Supporting content-types text/plain and application/json"; const char *msg = "Supporting content-types text/plain and application/json";
REST.set_response_payload(response, msg, strlen(msg)); REST.set_response_payload(response, msg, strlen(msg));
} }

View file

@ -362,7 +362,7 @@ temperature_handler(void* request, void* response, uint8_t *buffer, uint16_t pre
} }
else else
{ {
REST.set_response_status(response, REST.status.UNSUPPORTED_MADIA_TYPE); REST.set_response_status(response, REST.status.UNSUPPORTED_MEDIA_TYPE);
const char *msg = "Supporting content-types text/plain and application/json"; const char *msg = "Supporting content-types text/plain and application/json";
REST.set_response_payload(response, msg, strlen(msg)); REST.set_response_payload(response, msg, strlen(msg));
} }

View file

@ -276,7 +276,7 @@ ds1820_handler(void* request, void* response, uint8_t *buffer, uint16_t preferre
} }
else else
{ {
REST.set_response_status(response, REST.status.UNSUPPORTED_MADIA_TYPE); REST.set_response_status(response, REST.status.UNSUPPORTED_MEDIA_TYPE);
REST.set_response_payload(response, (uint8_t *)"Supporting content-types text/plain and application/json", 56); REST.set_response_payload(response, (uint8_t *)"Supporting content-types text/plain and application/json", 56);
} }
} }
@ -838,7 +838,7 @@ light_handler(void* request, void* response, uint8_t *buffer, uint16_t preferred
} }
else else
{ {
REST.set_response_status(response, REST.status.UNSUPPORTED_MADIA_TYPE); REST.set_response_status(response, REST.status.UNSUPPORTED_MEDIA_TYPE);
const char *msg = "Supporting content-types text/plain, application/xml, and application/json"; const char *msg = "Supporting content-types text/plain, application/xml, and application/json";
REST.set_response_payload(response, msg, strlen(msg)); REST.set_response_payload(response, msg, strlen(msg));
} }
@ -873,7 +873,7 @@ battery_handler(void* request, void* response, uint8_t *buffer, uint16_t preferr
} }
else else
{ {
REST.set_response_status(response, REST.status.UNSUPPORTED_MADIA_TYPE); REST.set_response_status(response, REST.status.UNSUPPORTED_MEDIA_TYPE);
const char *msg = "Supporting content-types text/plain and application/json"; const char *msg = "Supporting content-types text/plain and application/json";
REST.set_response_payload(response, msg, strlen(msg)); REST.set_response_payload(response, msg, strlen(msg));
} }
@ -931,7 +931,7 @@ radio_handler(void* request, void* response, uint8_t *buffer, uint16_t preferred
} }
else else
{ {
REST.set_response_status(response, REST.status.UNSUPPORTED_MADIA_TYPE); REST.set_response_status(response, REST.status.UNSUPPORTED_MEDIA_TYPE);
const char *msg = "Supporting content-types text/plain and application/json"; const char *msg = "Supporting content-types text/plain and application/json";
REST.set_response_payload(response, msg, strlen(msg)); REST.set_response_payload(response, msg, strlen(msg));
} }