Skip to content

Commit

Permalink
fix:format error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dozingfiretruck committed Aug 28, 2024
1 parent 39870b4 commit 0421a88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/network/libhttp/luat_http_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ static void http_send_message(luat_http_ctrl_t *http_ctrl){
if (http_ctrl->luatos_mode) {

if (http_ctrl->headers_complete){
result = snprintf_(http_ctrl->resp_buff, HTTP_RESP_BUFF_SIZE, "Range: bytes=%d-\r\n", http_ctrl->body_len);
result = snprintf_(http_ctrl->resp_buff, HTTP_RESP_BUFF_SIZE, "Range: bytes=%lu-\r\n", http_ctrl->body_len);
http_send(http_ctrl, http_ctrl->resp_buff, result);
}

Expand Down Expand Up @@ -542,7 +542,7 @@ static void http_send_message(luat_http_ctrl_t *http_ctrl){


if (http_ctrl->data_mode && (http_ctrl->offset || http_ctrl->body_len)){
result = snprintf_(http_ctrl->resp_buff, 320, "Range: bytes=%u-\r\n", (http_ctrl->offset + http_ctrl->body_len));
result = snprintf_(http_ctrl->resp_buff, 320, "Range: bytes=%lu-\r\n", (http_ctrl->offset + http_ctrl->body_len));
LLOGD("get offset %u+%u", http_ctrl->offset, http_ctrl->body_len);
http_send(http_ctrl, http_ctrl->resp_buff, result);
}
Expand Down

0 comments on commit 0421a88

Please sign in to comment.