PIHTTPClient fixes
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "pihttpclient.h"
|
||||
#include "pitime.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
CurlThreadPool::CurlThreadPool() {
|
||||
piForTimes(10) {
|
||||
@@ -34,6 +35,7 @@ CurlThreadPool::~CurlThreadPool() {
|
||||
for (auto c: *cr)
|
||||
delete c;
|
||||
}
|
||||
curl_global_cleanup();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ PIHTTPClient * PIHTTPClient::create(const PIString & url_, PIHTTP::Method method
|
||||
static_cast<PIHTTP::MessageConst &>(ret->request) = req;
|
||||
ret->request.setMethod(method);
|
||||
ret->reply.setMethod(method);
|
||||
ret->url = url_.toPercentageEncoding();
|
||||
ret->url = url_;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user