UNSUPPORTED_MADIA_TYPE is a typo
This commit is contained in:
parent
21bbe79079
commit
8bb7d82a2d
4 changed files with 9 additions and 9 deletions
|
@ -362,7 +362,7 @@ temperature_handler(void* request, void* response, uint8_t *buffer, uint16_t pre
|
|||
}
|
||||
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";
|
||||
REST.set_response_payload(response, msg, strlen(msg));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue