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
2aa3d697
Commit
2aa3d697
authored
May 03, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
May 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Set status code OK for responses without headers.
parent
0d764893
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
http.c
dlls/wininet/http.c
+1
-0
http.c
dlls/wininet/tests/http.c
+2
-7
No files found.
dlls/wininet/http.c
View file @
2aa3d697
...
@@ -5725,6 +5725,7 @@ static INT HTTP_GetResponseHeaders(http_request_t *request, BOOL clear)
...
@@ -5725,6 +5725,7 @@ static INT HTTP_GetResponseHeaders(http_request_t *request, BOOL clear)
heap_free
(
request
->
version
);
heap_free
(
request
->
version
);
heap_free
(
request
->
statusText
);
heap_free
(
request
->
statusText
);
request
->
status_code
=
HTTP_STATUS_OK
;
request
->
version
=
heap_strdupW
(
g_szHttp1_0
);
request
->
version
=
heap_strdupW
(
g_szHttp1_0
);
request
->
statusText
=
heap_strdupW
(
szOK
);
request
->
statusText
=
heap_strdupW
(
szOK
);
...
...
dlls/wininet/tests/http.c
View file @
2aa3d697
...
@@ -2426,7 +2426,7 @@ static void test_invalid_response_headers(int port)
...
@@ -2426,7 +2426,7 @@ static void test_invalid_response_headers(int port)
static
void
test_response_without_headers
(
int
port
)
static
void
test_response_without_headers
(
int
port
)
{
{
HINTERNET
hi
,
hc
,
hr
;
HINTERNET
hi
,
hc
,
hr
;
DWORD
r
,
count
,
size
,
status
;
DWORD
r
,
count
,
size
;
char
buffer
[
1024
];
char
buffer
[
1024
];
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
...
@@ -2453,12 +2453,7 @@ static void test_response_without_headers(int port)
...
@@ -2453,12 +2453,7 @@ static void test_response_without_headers(int port)
todo_wine
ok
(
count
==
sizeof
page1
-
1
,
"count was wrong
\n
"
);
todo_wine
ok
(
count
==
sizeof
page1
-
1
,
"count was wrong
\n
"
);
todo_wine
ok
(
!
memcmp
(
buffer
,
page1
,
sizeof
page1
),
"http data wrong
\n
"
);
todo_wine
ok
(
!
memcmp
(
buffer
,
page1
,
sizeof
page1
),
"http data wrong
\n
"
);
status
=
0
;
test_status_code
(
hr
,
200
);
size
=
sizeof
(
status
);
SetLastError
(
0xdeadbeef
);
r
=
HttpQueryInfo
(
hr
,
HTTP_QUERY_STATUS_CODE
|
HTTP_QUERY_FLAG_NUMBER
,
&
status
,
&
size
,
NULL
);
ok
(
r
,
"HttpQueryInfo failed %u
\n
"
,
GetLastError
());
todo_wine
ok
(
status
==
200
,
"expected status 200 got %u
\n
"
,
status
);
buffer
[
0
]
=
0
;
buffer
[
0
]
=
0
;
size
=
sizeof
(
buffer
);
size
=
sizeof
(
buffer
);
...
...
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