UNSUPPORTED_MADIA_TYPE is a typo
This commit is contained in:
parent
21bbe79079
commit
8bb7d82a2d
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue