Removed pop_back that could lead to undefined behaviour
This commit is contained in:
parent
9e4aee7fd3
commit
f59906cc90
2 changed files with 0 additions and 2 deletions
|
|
@ -634,7 +634,6 @@ namespace SimpleWeb {
|
|||
std::string line;
|
||||
getline(istream, line);
|
||||
bytes_transferred -= line.size() + 1;
|
||||
line.pop_back();
|
||||
unsigned long length = 0;
|
||||
try {
|
||||
length = stoul(line, 0, 16);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue