Make compatible with libcurl >= 7.50

This commit is contained in:
Sebastian Messmer 2016-07-23 09:04:50 +02:00
parent 5442662dd1
commit 6360d452fe
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Version 0.9.6 (unreleased)
---------------
Compatibility:
* Compatible with libcurl >= 7.50.0
Version 0.9.5
---------------
Fixed Bugs:

View File

@ -3,7 +3,6 @@
#include "CurlHttpClient.h"
#include <sstream>
#include <iostream>
#include <curl/curl.h>
#include <curl/easy.h>
using boost::none;

View File

@ -4,6 +4,7 @@
#include "HttpClient.h"
#include "../macros.h"
#include <curl/curl.h>
namespace cpputils {
@ -16,7 +17,7 @@ namespace cpputils {
boost::optional <std::string> get(const std::string &url, boost::optional<long> timeoutMsec = boost::none) override;
private:
void *curl;
CURL *curl;
static size_t write_data(void *ptr, size_t size, size_t nmemb, std::ostringstream *stream);