Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

adding support for ignoring credentials in URL #76

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion http_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1426,8 +1426,17 @@ parseUrl(const char *url, int len,
}
} else {
for(i = x; i < len; i++)
if(url[i] == ':' || url[i] == '/')
tryagain:
if(url[i] == ':' || url[i] == '/' || url[i] == '@') {
int tom = i;
while (url[tom] != '/') {
if (url[tom++] == '@') {
i = tom;
goto tryagain;
}
}
break;
}
}
y = i;

Expand Down