Fixes #87: now connects to socket when using second Client::request method
This commit is contained in:
parent
74d7ca0cdb
commit
e7be91ef14
1 changed files with 2 additions and 0 deletions
|
|
@ -135,6 +135,8 @@ namespace SimpleWeb {
|
|||
if(content_length>0)
|
||||
write_stream << content.rdbuf();
|
||||
|
||||
connect();
|
||||
|
||||
auto timer=get_timeout_timer();
|
||||
boost::asio::async_write(*socket, write_buffer,
|
||||
[this, timer](const boost::system::error_code &ec, size_t /*bytes_transferred*/) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue