Skip to content

Commit

Permalink
fix:修复http 头分包导致解析失败
Browse files Browse the repository at this point in the history
  • Loading branch information
Dozingfiretruck committed Jun 27, 2024
1 parent c586b83 commit 8847892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/network/libhttp/luat_http_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ int32_t luat_lib_http_callback(void *data, void *param){
return -1;
}
}
result = network_rx(http_ctrl->netc, (uint8_t*)http_ctrl->resp_buff, total_len, 0, NULL, NULL, &rx_len);
result = network_rx(http_ctrl->netc, (uint8_t*)http_ctrl->resp_buff+http_ctrl->resp_buff_offset, total_len, 0, NULL, NULL, &rx_len);
LLOGD("result:%d rx_len:%d",result,rx_len);
if (rx_len == 0||result!=0) {
http_resp_error(http_ctrl, HTTP_ERROR_RX);
Expand Down

0 comments on commit 8847892

Please sign in to comment.