aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/storages
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-06-20 17:22:24 +0200
committerJaquee <jaquee.monero@gmail.com>2017-10-15 17:29:04 +0200
commit1cf940f2a1292c3ebfd57709782bb53b92803aaa (patch)
tree2c785ac703fd4ac879871d84407f86310e813327 /contrib/epee/include/storages
parentCMakeLists.txt - Add openssl include dir (diff)
downloadmonero-1cf940f2a1292c3ebfd57709782bb53b92803aaa.tar.xz
epee http_client SSL support
Diffstat (limited to 'contrib/epee/include/storages')
-rw-r--r--contrib/epee/include/storages/http_abstract_invoke.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/epee/include/storages/http_abstract_invoke.h b/contrib/epee/include/storages/http_abstract_invoke.h
index 823ce6731..6517f1253 100644
--- a/contrib/epee/include/storages/http_abstract_invoke.h
+++ b/contrib/epee/include/storages/http_abstract_invoke.h
@@ -44,8 +44,11 @@ namespace epee
if(!serialization::store_t_to_json(out_struct, req_param))
return false;
+ http::fields_list additional_params;
+ additional_params.push_back(std::make_pair("Content-Type","application/json; charset=utf-8"));
+
const http::http_response_info* pri = NULL;
- if(!transport.invoke(uri, method, req_param, timeout, std::addressof(pri)))
+ if(!transport.invoke(uri, method, req_param, timeout, std::addressof(pri), std::move(additional_params)))
{
LOG_PRINT_L1("Failed to invoke http request to " << uri);
return false;