Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
01a83cde
Commit
01a83cde
authored
Apr 25, 2009
by
Paul TBBle Hampson
Committed by
Alexandre Julliard
Apr 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Test for handling of blank headers in HttpAddRequestHeaders.
parent
078989d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
http.c
dlls/wininet/tests/http.c
+11
-0
No files found.
dlls/wininet/tests/http.c
View file @
01a83cde
...
...
@@ -1274,6 +1274,17 @@ static void HttpHeaders_test(void)
strcpy
(
buffer
,
"Warning"
);
ok
(
HttpQueryInfo
(
hRequest
,
HTTP_QUERY_CUSTOM
|
HTTP_QUERY_FLAG_REQUEST_HEADERS
,
buffer
,
&
len
,
&
index
)
==
0
,
"Third Header Should Not Exist
\n
"
);
/* Ensure that blank headers are ignored and don't cause a failure */
todo_wine
{
ok
(
HttpAddRequestHeaders
(
hRequest
,
"
\r\n
BlankTest:value
\r\n\r\n
"
,
-
1
,
HTTP_ADDREQ_FLAG_ADD_IF_NEW
),
"Failed to add header with blank entries in list
\n
"
);
index
=
0
;
len
=
sizeof
(
buffer
);
strcpy
(
buffer
,
"BlankTest"
);
ok
(
HttpQueryInfo
(
hRequest
,
HTTP_QUERY_CUSTOM
|
HTTP_QUERY_FLAG_REQUEST_HEADERS
,
buffer
,
&
len
,
&
index
),
"Unable to query header
\n
"
);
ok
(
index
==
1
,
"Index was not incremented
\n
"
);
ok
(
strcmp
(
buffer
,
"value"
)
==
0
,
"incorrect string was returned(%s)
\n
"
,
buffer
);
}
ok
(
InternetCloseHandle
(
hRequest
),
"Close request handle failed
\n
"
);
done:
...
...
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