@@ -297,7 +297,10 @@ namespace web { namespace http
297
297
}
298
298
}
299
299
300
- linux_client_request_context (std::shared_ptr<_http_client_communicator> &client, http_request request, std::shared_ptr<linux_connection> &connection);
300
+ linux_client_request_context (
301
+ const std::shared_ptr<_http_client_communicator> &client,
302
+ http_request request,
303
+ const std::shared_ptr<linux_connection> &connection);
301
304
302
305
protected:
303
306
virtual void cleanup ()
@@ -873,7 +876,7 @@ namespace web { namespace http
873
876
}
874
877
}
875
878
876
- void read_headers (std::shared_ptr<linux_client_request_context> ctx)
879
+ void read_headers (const std::shared_ptr<linux_client_request_context> & ctx)
877
880
{
878
881
ctx->m_needChunked = false ;
879
882
std::istream response_stream (&ctx->m_body_buf );
@@ -1137,8 +1140,7 @@ namespace web { namespace http
1137
1140
}
1138
1141
else
1139
1142
{
1140
- writeBuffer.sync ()
1141
- .then ([ctx](pplx::task<void > op)
1143
+ writeBuffer.sync ().then ([ctx](pplx::task<void > op)
1142
1144
{
1143
1145
try
1144
1146
{
@@ -1172,9 +1174,9 @@ namespace web { namespace http
1172
1174
}
1173
1175
1174
1176
linux_client_request_context::linux_client_request_context (
1175
- std::shared_ptr<_http_client_communicator> &client,
1177
+ const std::shared_ptr<_http_client_communicator> &client,
1176
1178
http_request request,
1177
- std::shared_ptr<linux_connection> &connection)
1179
+ const std::shared_ptr<linux_connection> &connection)
1178
1180
: request_context(client, request)
1179
1181
, m_known_size(0 )
1180
1182
, m_current_size(0 )
0 commit comments