Fix bad request header (#472)

This commit is contained in:
xiaoxinw
2022-04-08 18:11:23 +08:00
committed by GitHub
parent ce8d2bd0f1
commit a24cb7c00a

View File

@@ -190,7 +190,7 @@ static int curlGet(const FetchArgument &argument, FetchResult &result)
curl_progress_data limit;
limit.size_limit = global.maxAllowedDownloadSize;
curl_set_common_options(curl_handle, new_url.data(), &limit);
list = curl_slist_append(list, "Content-Type: application/json;charset='utf-8'");
list = curl_slist_append(list, "Content-Type: application/json;charset=utf-8");
if(argument.request_headers)
{
for(auto &x : *argument.request_headers)