fix REST_SetHeader, fixes #276

pull/326/head V3.2.45.alpha
Thorsten von Eicken 8 years ago
parent d94628cbe6
commit 9e8bba88ba
No known key found for this signature in database
GPG Key ID: C7F972A59D834B46
  1. 4
      rest/rest.c

@ -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);

Loading…
Cancel
Save