Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
mongoose
Commits
67521fd9
Commit
67521fd9
authored
Jan 13, 2016
by
Marko Mikulicic
Committed by
rojer
Feb 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix parse uri
PUBLISHED_FROM=9bc251ed259e909a8438f95a82d0a229b5a834cf
parent
8c394f44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
mongoose.c
mongoose.c
+5
-4
No files found.
mongoose.c
View file @
67521fd9
...
...
@@ -3816,7 +3816,6 @@ int mg_parse_uri(struct mg_str uri, struct mg_str *scheme,
const
char
*
p
=
uri
.
p
,
*
end
=
p
+
uri
.
len
;
while
(
p
<
end
)
{
printf
(
"STATE: %d (%s)
\n
"
,
state
,
p
);
switch
(
state
)
{
case
P_START
:
/*
...
...
@@ -3859,12 +3858,14 @@ int mg_parse_uri(struct mg_str uri, struct mg_str *scheme,
state
=
P_HOST
;
break
;
}
else
if
(
*
p
==
'/'
)
{
/* backtrack and parse as host */
state
=
P_HOST
;
p
=
ruser_info
.
p
;
break
;
}
}
if
(
p
==
end
||
*
p
==
'/'
)
{
/* backtrack and parse as host */
state
=
P_HOST
;
p
=
ruser_info
.
p
;
}
ruser_info
.
len
=
p
-
ruser_info
.
p
;
break
;
case
P_HOST
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment