Skip to content

Commit

Permalink
Merge pull request #653 from openledger/develop
Browse files Browse the repository at this point in the history
Fix broken HTTP headers in elasticsearch requests
  • Loading branch information
oxarbitrage authored Feb 8, 2018
2 parents 49e8869 + f4dd0a9 commit 2cb3675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/plugins/elasticsearch/elasticsearch_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ void elasticsearch_plugin_impl::sendBulk(std::string _elasticsearch_node_url, bo
//wlog((bulking));

struct curl_slist *headers = NULL;
curl_slist_append(headers, "Content-Type: application/json");
headers = curl_slist_append(headers, "Content-Type: application/json");
std::string url = _elasticsearch_node_url + "_bulk";
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_POST, true);
Expand Down

0 comments on commit 2cb3675

Please sign in to comment.