From f441cd2a44dd92024100857b5ea5f646bcc50bb2 Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Tue, 9 Dec 2025 22:23:45 -0500 Subject: [PATCH] Use std::move for content_provider in adapter (#2297) --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index d46a2d3..3c2d406 100644 --- a/httplib.h +++ b/httplib.h @@ -6835,7 +6835,7 @@ class ContentProviderAdapter { public: explicit ContentProviderAdapter( ContentProviderWithoutLength &&content_provider) - : content_provider_(content_provider) {} + : content_provider_(std::move(content_provider)) {} bool operator()(size_t offset, size_t, DataSink &sink) { return content_provider_(offset, sink);