Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
1a74ccc8
Commit
1a74ccc8
authored
Sep 22, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Fix a couple of test failures.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
parent
d8ddf1b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
http.c
dlls/wininet/tests/http.c
+4
-2
No files found.
dlls/wininet/tests/http.c
View file @
1a74ccc8
...
...
@@ -2153,6 +2153,8 @@ static DWORD CALLBACK server_thread(LPVOID param)
{
if
(
strstr
(
buffer
,
"Content-Length: 100"
))
{
if
(
strstr
(
buffer
,
"POST /test7b"
))
recvfrom
(
c
,
buffer
,
sizeof
buffer
,
0
,
NULL
,
NULL
);
send
(
c
,
okmsg
,
sizeof
okmsg
-
1
,
0
);
send
(
c
,
page1
,
sizeof
page1
-
1
,
0
);
}
...
...
@@ -2879,7 +2881,7 @@ static void test_header_handling_order(int port)
connect
=
InternetConnectA
(
session
,
"localhost"
,
port
,
NULL
,
NULL
,
INTERNET_SERVICE_HTTP
,
0
,
0
);
ok
(
connect
!=
NULL
,
"InternetConnect failed
\n
"
);
request
=
HttpOpenRequestA
(
connect
,
"POST"
,
"/test7b"
,
NULL
,
NULL
,
types
,
0
,
0
);
request
=
HttpOpenRequestA
(
connect
,
"POST"
,
"/test7b"
,
NULL
,
NULL
,
types
,
INTERNET_FLAG_KEEP_CONNECTION
,
0
);
ok
(
request
!=
NULL
,
"HttpOpenRequest failed
\n
"
);
ret
=
HttpAddRequestHeadersA
(
request
,
"Content-Length: 100
\r\n
"
,
~
0u
,
HTTP_ADDREQ_FLAG_ADD_IF_NEW
);
...
...
@@ -2887,7 +2889,7 @@ static void test_header_handling_order(int port)
data_len
=
sizeof
(
data
);
memset
(
data
,
'a'
,
sizeof
(
data
));
ret
=
HttpSendRequestA
(
request
,
connection
,
~
0u
,
data
,
data_len
);
ret
=
HttpSendRequestA
(
request
,
NULL
,
0
,
data
,
data_len
);
ok
(
ret
,
"HttpSendRequest failed: %u
\n
"
,
GetLastError
());
status
=
0
;
...
...
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