Skip to content

Commit

Permalink
fix REST_SetHeader, fixes #276
Browse files Browse the repository at this point in the history
  • Loading branch information
tve committed Jun 18, 2017
1 parent d94628c commit 9e8bba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rest/rest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9e8bba8

Please sign in to comment.