From a557632716878f15b20b617904b2bf50ab8f0197 Mon Sep 17 00:00:00 2001 From: Pavel Shliak Date: Sun, 1 Dec 2024 16:27:00 +0400 Subject: [PATCH] LibWeb: Move http response method in setter --- Libraries/LibWeb/Fetch/Infrastructure/HTTP/Responses.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Responses.h b/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Responses.h index bda902af941..0eedb9eb628 100644 --- a/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Responses.h +++ b/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Responses.h @@ -204,7 +204,7 @@ private: public: [[nodiscard]] ByteBuffer const& method() const { return m_method; } - void set_method(ByteBuffer method) { m_method = method; } + void set_method(ByteBuffer method) { m_method = move(method); } }; // https://fetch.spec.whatwg.org/#concept-filtered-response