mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-28 23:27: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
|
else
|
||||||
throw invalid_argument( "could not read file" );
|
throw invalid_argument( "could not read file" );
|
||||||
}
|
}
|
||||||
catch( const exception &e )
|
catch( const exception & )
|
||||||
{
|
{
|
||||||
string content = "Path not found: " + request->path;
|
string content = "Path not found: " + request->path;
|
||||||
*response << "HTTP/1.1 400 Bad Request\r\nContent-Length: " << content.length() << "\r\n\r\n" << content;
|
*response << "HTTP/1.1 400 Bad Request\r\nContent-Length: " << content.length() << "\r\n\r\n" << content;
|
||||||
|
|
|
@ -273,7 +273,7 @@ namespace SimpleWeb {
|
||||||
try {
|
try {
|
||||||
content_length=stoull(it->second);
|
content_length=stoull(it->second);
|
||||||
}
|
}
|
||||||
catch(const std::exception &e) {
|
catch( const std::exception & ) {
|
||||||
if(on_error)
|
if(on_error)
|
||||||
on_error(request, boost::system::error_code(boost::system::errc::protocol_error, boost::system::generic_category()));
|
on_error(request, boost::system::error_code(boost::system::errc::protocol_error, boost::system::generic_category()));
|
||||||
return;
|
return;
|
||||||
|
@ -388,7 +388,7 @@ namespace SimpleWeb {
|
||||||
try {
|
try {
|
||||||
http_version=stof(request->http_version);
|
http_version=stof(request->http_version);
|
||||||
}
|
}
|
||||||
catch(const std::exception &e){
|
catch( const std::exception & ){
|
||||||
if(on_error)
|
if(on_error)
|
||||||
on_error(request, boost::system::error_code(boost::system::errc::protocol_error, boost::system::generic_category()));
|
on_error(request, boost::system::error_code(boost::system::errc::protocol_error, boost::system::generic_category()));
|
||||||
return;
|
return;
|
||||||
|
@ -410,7 +410,7 @@ namespace SimpleWeb {
|
||||||
try {
|
try {
|
||||||
resource_function(response, request);
|
resource_function(response, request);
|
||||||
}
|
}
|
||||||
catch(const std::exception &e) {
|
catch( const std::exception & ) {
|
||||||
if(on_error)
|
if(on_error)
|
||||||
on_error(request, boost::system::error_code(boost::system::errc::operation_canceled, boost::system::generic_category()));
|
on_error(request, boost::system::error_code(boost::system::errc::operation_canceled, boost::system::generic_category()));
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue