From 979aff4918b81f3dd4e12883d5db366ade8a0d6e Mon Sep 17 00:00:00 2001 From: Herman Semenov Date: Sun, 19 May 2024 21:51:32 -0500 Subject: [PATCH] Constantify lambda variable --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index ba6e666..047b3e9 100644 --- a/httplib.h +++ b/httplib.h @@ -7646,7 +7646,7 @@ inline bool ClientImpl::process_request(Stream &strm, Request &req, inline ContentProviderWithoutLength ClientImpl::get_multipart_content_provider( const std::string &boundary, const MultipartFormDataItems &items, const MultipartFormDataProviderItems &provider_items) const { - size_t cur_item = 0; + const size_t cur_item = 0; size_t cur_start = 0; // cur_item and cur_start are copied to within the std::function and maintain // state between successive calls