Skip to content

Commit 7fb0254

Browse files
committed
Fix #1215
1 parent c82d1e5 commit 7fb0254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4966,7 +4966,7 @@ inline bool Server::parse_request_line(const char *s, Request &req) {
49664966

49674967
{
49684968
// Skip URL fragment
4969-
for (size_t i = 0; i < len; i++) {
4969+
for (size_t i = 0; i < req.target.size(); i++) {
49704970
if (req.target[i] == '#') {
49714971
req.target.erase(i);
49724972
break;

0 commit comments

Comments
 (0)