Commit 5790756e authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue for multiple headers

parent d7f2a92f
...@@ -1007,7 +1007,6 @@ bool smf_sbi::curl_create_handle( ...@@ -1007,7 +1007,6 @@ bool smf_sbi::curl_create_handle(
bool smf_sbi::curl_create_handle( bool smf_sbi::curl_create_handle(
const std::string& uri, const std::string& data, std::string& response_data, const std::string& uri, const std::string& data, std::string& response_data,
uint32_t* promise_id, const std::string& method, uint8_t http_version) { uint32_t* promise_id, const std::string& method, uint8_t http_version) {
headers = curl_slist_append(headers, "Content-Type: application/json");
// Create handle for a curl request // Create handle for a curl request
CURL* curl = curl_easy_init(); CURL* curl = curl_easy_init();
...@@ -1064,7 +1063,6 @@ bool smf_sbi::curl_create_handle( ...@@ -1064,7 +1063,6 @@ bool smf_sbi::curl_create_handle(
bool smf_sbi::curl_create_handle( bool smf_sbi::curl_create_handle(
const std::string& uri, std::string& response_data, uint32_t* promise_id, const std::string& uri, std::string& response_data, uint32_t* promise_id,
const std::string& method, uint8_t http_version) { const std::string& method, uint8_t http_version) {
headers = curl_slist_append(headers, "Content-Type: application/json");
// Create handle for a curl request // Create handle for a curl request
CURL* curl = curl_easy_init(); CURL* curl = curl_easy_init();
......
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