@@ -25,7 +25,6 @@ struct basic_response;
25
25
26
26
template <class Tag , unsigned version_major, unsigned version_minor>
27
27
struct basic_client_facade {
28
-
29
28
typedef typename string<Tag>::type string_type;
30
29
typedef basic_request<Tag> request;
31
30
typedef basic_response<Tag> response;
@@ -53,12 +52,12 @@ struct basic_client_facade {
53
52
body_generator_function_type ());
54
53
}
55
54
56
- response post (request request, string_type const & body = string_type(),
57
- string_type const & content_type = string_type(),
58
- body_callback_function_type body_handler =
59
- body_callback_function_type(),
60
- body_generator_function_type body_generator =
61
- body_generator_function_type()) {
55
+ response post (
56
+ request request, string_type const & body = string_type(),
57
+ string_type const & content_type = string_type(),
58
+ body_callback_function_type body_handler = body_callback_function_type(),
59
+ body_generator_function_type body_generator =
60
+ body_generator_function_type()) {
62
61
if (body != string_type ()) {
63
62
request << remove_header (" Content-Length" )
64
63
<< header (" Content-Length" ,
@@ -82,10 +81,9 @@ struct basic_client_facade {
82
81
body_generator);
83
82
}
84
83
85
- response post (request const & request,
86
- body_generator_function_type body_generator,
87
- body_callback_function_type callback =
88
- body_generator_function_type ()) {
84
+ response post (
85
+ request const & request, body_generator_function_type body_generator,
86
+ body_callback_function_type callback = body_generator_function_type()) {
89
87
return pimpl->request_skeleton (request, " POST" , true , callback,
90
88
body_generator);
91
89
}
@@ -104,12 +102,12 @@ struct basic_client_facade {
104
102
return post (request, body, string_type (), callback, body_generator);
105
103
}
106
104
107
- response put (request request, string_type const & body = string_type(),
108
- string_type const & content_type = string_type(),
109
- body_callback_function_type body_handler =
110
- body_callback_function_type(),
111
- body_generator_function_type body_generator =
112
- body_generator_function_type()) {
105
+ response put (
106
+ request request, string_type const & body = string_type(),
107
+ string_type const & content_type = string_type(),
108
+ body_callback_function_type body_handler = body_callback_function_type(),
109
+ body_generator_function_type body_generator =
110
+ body_generator_function_type()) {
113
111
if (body != string_type ()) {
114
112
request << remove_header (" Content-Length" )
115
113
<< header (" Content-Length" ,
@@ -164,7 +162,8 @@ struct basic_client_facade {
164
162
options.always_verify_peer (), options.openssl_certificate (),
165
163
options.openssl_verify_path (), options.openssl_certificate_file (),
166
164
options.openssl_private_key_file (), options.openssl_ciphers (),
167
- options.openssl_options (), options.io_service (), options.timeout ()));
165
+ options.openssl_sni_hostname (), options.openssl_options (),
166
+ options.io_service (), options.timeout ()));
168
167
}
169
168
};
170
169
0 commit comments