diff --git a/uboot-mtk-20220606/net/httpd.c b/uboot-mtk-20220606/net/httpd.c index 51ee9695f..b36b0c525 100644 --- a/uboot-mtk-20220606/net/httpd.c +++ b/uboot-mtk-20220606/net/httpd.c @@ -276,6 +276,11 @@ u32 http_make_response_header(struct http_response_info *info, char *buff, p += snprintf(p, buff + size - p, "Content-Length: %d\r\n", info->content_length); + if (p >= buff + size) + return size; + + p += snprintf(p, buff + size - p, "Cache-Control: no-store\r\n"); + if (p >= buff + size) return size;