This commit is contained in:
yhirose 2022-03-16 12:50:13 -04:00
parent c82d1e52cc
commit 7fb0254794

View file

@ -4966,7 +4966,7 @@ inline bool Server::parse_request_line(const char *s, Request &req) {
{
// Skip URL fragment
for (size_t i = 0; i < len; i++) {
for (size_t i = 0; i < req.target.size(); i++) {
if (req.target[i] == '#') {
req.target.erase(i);
break;