Commit 515cdc7e authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Merge branch 'fix_sbi_client' into 'develop'

Fix issue for multiple headers

See merge request oai/cn5g/oai-cn5g-smf!83
parents d7f2a92f 5790756e
...@@ -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