mirror of
https://github.com/jeelabs/esp-link.git
synced 2026-02-19 18:21:19 +01:00
fix REST_SetHeader, fixes #276
This commit is contained in:
@@ -302,8 +302,8 @@ REST_SetHeader(CmdPacket *cmd) {
|
||||
RestClient *client = restClient + (clientNum % MAX_REST);
|
||||
|
||||
// Get header selector
|
||||
uint32_t header_index;
|
||||
if (cmdPopArg(&req, (uint8_t*)&header_index, 4)) return;
|
||||
uint8_t header_index;
|
||||
if (cmdPopArg(&req, &header_index, 1)) return;
|
||||
|
||||
// Get header value
|
||||
uint16_t len = cmdArgLen(&req);
|
||||
|
||||
Reference in New Issue
Block a user