fix(Http): send body content for PATCH, DELETE and OPTIONS methods if exists
while here: - use CURLOPT_UPLOAD instead of CURLOPT_PUT as the latter is depracated
This commit is contained in:
@@ -346,7 +346,7 @@ private:
|
||||
std::string temp_header_value_ascii;
|
||||
|
||||
bool fetch_internal(Method method, const char * url, const std::string * in, pt::TextStream & out);
|
||||
void put_method(Method & method);
|
||||
void put_method(Method & method, const std::string * in);
|
||||
static size_t fetch_read_function(char * ptr, size_t size, size_t nmemb, void * userdata);
|
||||
static int fetch_seek_set(Http * http, curl_off_t offset);
|
||||
static int fetch_seek_cur(Http * http, curl_off_t offset);
|
||||
|
Reference in New Issue
Block a user