You've already forked cpp-httplib
Fixed problems with Win32 build
This commit is contained in:
@ -2452,6 +2452,7 @@ Server::process_request(Stream &strm, bool last_connection,
|
||||
// Check if the request URI doesn't exceed the limit
|
||||
if (reader.size() > CPPHTTPLIB_REQUEST_URI_MAX_LENGTH) {
|
||||
res.status = 414;
|
||||
connection_close = true;
|
||||
return write_response(strm, last_connection, req, res);
|
||||
}
|
||||
|
||||
@ -2459,6 +2460,7 @@ Server::process_request(Stream &strm, bool last_connection,
|
||||
if (!parse_request_line(reader.ptr(), req) ||
|
||||
!detail::read_headers(strm, req.headers)) {
|
||||
res.status = 400;
|
||||
connection_close = true;
|
||||
return write_response(strm, last_connection, req, res);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user