Remove warnings (#284)

This commit is contained in:
flagarde
2021-04-20 00:25:06 +08:00
committed by GitHub
parent 3b19b0eeca
commit 0e0a748037
3 changed files with 4 additions and 3 deletions

View File

@ -137,7 +137,7 @@ namespace ix
{
contentLength = std::stoi(headers["Content-Length"]);
}
catch (std::exception)
catch(const std::exception&)
{
return std::make_tuple(
false, "Error parsing HTTP Header 'Content-Length'", httpRequest);