Non floating numbers as HTTP version causes server crash.
Caused server crash 1:
telnet localhost 8080 Trying ::1... Connected to localhost. Escape character is '^]'. GET / HTTP/A
HTTP/1.1 200 OK Content-Length: 35
Error message: terminate called after throwing an instance of 'std::invalid_argument' what(): stof
Caused server crash 2:
telnet localhost 8080 Trying ::1... Connected to localhost. Escape character is '^]'. GET / HTTP/100000000000000000000000000000000000000000000000000000000000000
HTTP/1.1 200 OK Content-Length: 35
Error message: terminate called after throwing an instance of 'std::out_of_range' what(): stof
Main software:
- OS: Manjaro
- IDE: Juci++
BT: bt.txt