Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
de934641
Commit
de934641
authored
Nov 02, 2010
by
Arnout Vandecappelle (Essensium/Mind)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for Issue#200: Multiple calls to mg_read always return same data.
parent
b452eb1e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
embed.c
test/embed.c
+7
-1
No files found.
test/embed.c
View file @
de934641
...
...
@@ -54,7 +54,13 @@ static void test_get_var(struct mg_connection *conn,
if
(
!
strcmp
(
ri
->
request_method
,
"POST"
)
&&
cl
!=
NULL
)
{
buf_len
=
atoi
(
cl
);
buf
=
malloc
(
buf_len
);
/* Read in two pieces, to test continuation */
if
(
buf_len
>
2
)
{
mg_read
(
conn
,
buf
,
2
);
mg_read
(
conn
,
buf
+
2
,
buf_len
-
2
);
}
else
{
mg_read
(
conn
,
buf
,
buf_len
);
}
}
else
if
(
ri
->
query_string
!=
NULL
)
{
buf_len
=
strlen
(
ri
->
query_string
);
buf
=
malloc
(
buf_len
+
1
);
...
...
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