Make compatible with libcurl >= 7.50
This commit is contained in:
parent
5442662dd1
commit
6360d452fe
@ -1,3 +1,8 @@
|
||||
Version 0.9.6 (unreleased)
|
||||
---------------
|
||||
Compatibility:
|
||||
* Compatible with libcurl >= 7.50.0
|
||||
|
||||
Version 0.9.5
|
||||
---------------
|
||||
Fixed Bugs:
|
||||
|
@ -3,7 +3,6 @@
|
||||
#include "CurlHttpClient.h"
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
#include <curl/curl.h>
|
||||
#include <curl/easy.h>
|
||||
|
||||
using boost::none;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user