diff options
author | Jaquee <jaquee.monero@gmail.com> | 2017-06-20 17:22:24 +0200 |
---|---|---|
committer | Jaquee <jaquee.monero@gmail.com> | 2017-10-15 17:29:04 +0200 |
commit | 1cf940f2a1292c3ebfd57709782bb53b92803aaa (patch) | |
tree | 2c785ac703fd4ac879871d84407f86310e813327 /contrib/epee/include/storages | |
parent | CMakeLists.txt - Add openssl include dir (diff) | |
download | monero-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.h | 5 |
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; |