mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-29 08:56:18 +02:00
enable extra warnings
This commit is contained in:
parent
0b21a5daee
commit
7fda592d13
12 changed files with 16 additions and 16 deletions
|
@ -245,8 +245,8 @@ void ControlSessionHttp::on_read(beast::error_code ec, std::size_t bytes_transfe
|
|||
return;
|
||||
}
|
||||
|
||||
LOG(DEBUG) << "method: " << req_.method_string() << ", content type: " << req_[beast::http::field::content_type] << ", target: " << req_.target()
|
||||
<< ", body: " << req_.body() << "\n";
|
||||
LOG(DEBUG) << "read: " << bytes_transferred << ", method: " << req_.method_string() << ", content type: " << req_[beast::http::field::content_type]
|
||||
<< ", target: " << req_.target() << ", body: " << req_.body() << "\n";
|
||||
|
||||
// See if it is a WebSocket Upgrade
|
||||
if (websocket::is_upgrade(req_) && (req_.target() == "/jsonrpc"))
|
||||
|
@ -297,7 +297,7 @@ void ControlSessionHttp::on_write(beast::error_code ec, std::size_t, bool close)
|
|||
req_ = {};
|
||||
|
||||
// Read another request
|
||||
http::async_read(socket_, buffer_, req_, [ this, self = shared_from_this() ](beast::error_code ec, std::size_t bytes) { on_read(ec, bytes); });
|
||||
http::async_read(socket_, buffer_, req_, [this, self = shared_from_this()](beast::error_code ec, std::size_t bytes) { on_read(ec, bytes); });
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue