From d489e46448f3b030ffbc88afaeded78857514045 Mon Sep 17 00:00:00 2001 From: rmg-x Date: Sat, 9 Aug 2025 11:49:24 -0500 Subject: [PATCH] RequestServer: Clarify comment for removing Content-Type header This comment assumed that the reader knew how curl behaved with empty header values. --- Services/RequestServer/ConnectionFromClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/RequestServer/ConnectionFromClient.cpp b/Services/RequestServer/ConnectionFromClient.cpp index f23b44ee1cd..c5d9f39cdb1 100644 --- a/Services/RequestServer/ConnectionFromClient.cpp +++ b/Services/RequestServer/ConnectionFromClient.cpp @@ -536,7 +536,7 @@ void ConnectionFromClient::start_request(i32 request_id, ByteString method, URL: struct curl_slist* curl_headers = nullptr; // NOTE: CURLOPT_POSTFIELDS automatically sets the Content-Type header. - // Set it to empty if the headers passed in don't contain a content type. + // Tell curl to remove it by setting a blank value if the headers passed in don't contain a content type. if (did_set_body && !request_headers.contains("Content-Type")) curl_headers = curl_slist_append(curl_headers, "Content-Type:");