Matthew DeVore c49441ae64
Do not throw exceptions when parsing request chunks (#441)
detail::read_content_chunked was using std::stoul to parse the
hexadecimal chunk lengths for "Transfer-Encoding: chunked" requests.
This throws an exception if the string does not begin with any valid
digits. read_content_chunked is not called in the context of a try block
so this caused the process to terminate.

Rather than use exceptions, I opted for std::stroul, which is similar to
std::stoul but does not throw exceptions. Since malformed user input is
not particularly exceptional, and some projects are compiled without
exception support, this approach seems both more portable and more
correct.
2020-04-23 09:05:45 -04:00
..
2020-03-09 23:59:00 -04:00
2020-01-16 23:28:11 -05:00
2020-01-21 09:09:05 -05:00
2019-11-29 17:07:51 -05:00
2019-11-29 17:07:51 -05:00
2017-12-29 22:34:59 -05:00
2020-03-09 23:59:00 -04:00
2020-01-03 07:57:40 -05:00
2013-07-04 18:18:52 -04:00
2019-09-26 13:20:53 -04:00