Fixed validateByteRange parsing method

This commit is contained in:
Ervin Hegedus
2019-02-03 13:33:05 +00:00
committed by Felipe Zimmerle
parent 3dda0ea2c6
commit 4b3e6328e3
2 changed files with 44 additions and 1 deletions

View File

@@ -101,7 +101,7 @@ bool ValidateByteRange::init(const std::string &file,
getRange(std::string(m_param, pos + 1, m_param.length() -
(pos + 1)), error);
} else {
getRange(std::string(m_param, pos + 1, next_pos), error);
getRange(std::string(m_param, pos + 1, next_pos - (pos + 1)), error);
}
pos = next_pos;
}