mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-25 22:17:45 +00:00
Merge pull request #150 from ShelbyZ/unreferenced
Remove unreferenced parameters
This commit is contained in:
commit
711243f302
2 changed files with 4 additions and 4 deletions
|
@ -709,7 +709,7 @@ int main(int argc, char* argv[])
|
|||
else
|
||||
throw invalid_argument( "could not read file" );
|
||||
}
|
||||
catch( const exception &e )
|
||||
catch( const exception & )
|
||||
{
|
||||
string content = "Path not found: " + request->path;
|
||||
*response << "HTTP/1.1 400 Bad Request\r\nContent-Length: " << content.length() << "\r\n\r\n" << content;
|
||||
|
|
|
@ -273,7 +273,7 @@ namespace SimpleWeb {
|
|||
try {
|
||||
content_length=stoull(it->second);
|
||||
}
|
||||
catch(const std::exception &e) {
|
||||
catch( const std::exception & ) {
|
||||
if(on_error)
|
||||
on_error(request, boost::system::error_code(boost::system::errc::protocol_error, boost::system::generic_category()));
|
||||
return;
|
||||
|
@ -388,7 +388,7 @@ namespace SimpleWeb {
|
|||
try {
|
||||
http_version=stof(request->http_version);
|
||||
}
|
||||
catch(const std::exception &e){
|
||||
catch( const std::exception & ){
|
||||
if(on_error)
|
||||
on_error(request, boost::system::error_code(boost::system::errc::protocol_error, boost::system::generic_category()));
|
||||
return;
|
||||
|
@ -410,7 +410,7 @@ namespace SimpleWeb {
|
|||
try {
|
||||
resource_function(response, request);
|
||||
}
|
||||
catch(const std::exception &e) {
|
||||
catch( const std::exception & ) {
|
||||
if(on_error)
|
||||
on_error(request, boost::system::error_code(boost::system::errc::operation_canceled, boost::system::generic_category()));
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue