Commit e0d10859 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Fix typo

parent 8b35840c
......@@ -164,7 +164,7 @@ smf_sbi::smf_sbi() {
handles = {};
headers = nullptr;
headers = curl_slist_append(headers, "Accept: application/json");
headers = curl_slist_append(headers, "charsets: utf-8");
headers = curl_slist_append(headers, "Charsets: utf-8");
headers = curl_slist_append(headers, "Content-Type: application/json");
if ((code < 0) or (curl_multi == nullptr) or (headers == nullptr)) {
......@@ -1094,10 +1094,10 @@ bool smf_sbi::curl_create_handle(
headers = nullptr;
headers = curl_slist_append(headers, "Accept: application/json");
headers = curl_slist_append(headers, "charsets: utf-8");
headers = curl_slist_append(headers, "Charsets: utf-8");
if (is_multipart) {
std::string content_type = "content-type: multipart/related; boundary=" +
std::string content_type = "Content-type: multipart/related; boundary=" +
std::string(CURL_MIME_BOUNDARY);
headers = curl_slist_append(headers, content_type.c_str());
} else {
......@@ -1161,7 +1161,7 @@ bool smf_sbi::curl_create_handle(
headers = nullptr;
headers = curl_slist_append(headers, "Accept: application/json");
headers = curl_slist_append(headers, "charsets: utf-8");
headers = curl_slist_append(headers, "Charsets: utf-8");
headers = curl_slist_append(headers, "Content-Type: application/json");
if ((curl == nullptr) or (headers == nullptr)) {
......@@ -1225,7 +1225,7 @@ bool smf_sbi::curl_create_handle(
headers = nullptr;
headers = curl_slist_append(headers, "Accept: application/json");
headers = curl_slist_append(headers, "charsets: utf-8");
headers = curl_slist_append(headers, "Charsets: utf-8");
headers = curl_slist_append(headers, "Content-Type: application/json");
if ((curl == nullptr) or (headers == nullptr)) {
......@@ -1285,6 +1285,11 @@ bool smf_sbi::curl_create_handle(
// Create handle for a curl request
CURL* curl = curl_easy_init();
headers = nullptr;
headers = curl_slist_append(headers, "Accept: application/json");
headers = curl_slist_append(headers, "Charsets: utf-8");
headers = curl_slist_append(headers, "Content-Type: application/json");
if ((curl == nullptr) or (headers == nullptr)) {
Logger::smf_sbi().error("Cannot initialize a new Curl Handle");
return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment