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
d3f75190
Commit
d3f75190
authored
Dec 23, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Don't drain content until authorization is handled successfully.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e10c4814
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
request.c
dlls/winhttp/request.c
+2
-2
winhttp.c
dlls/winhttp/tests/winhttp.c
+0
-3
No files found.
dlls/winhttp/request.c
View file @
d3f75190
...
...
@@ -2421,8 +2421,8 @@ static BOOL receive_response( request_t *request, BOOL async )
{
if
(
request
->
hdr
.
disable_flags
&
WINHTTP_DISABLE_AUTHENTICATION
)
break
;
drain_content
(
request
);
if
(
!
handle_authorization
(
request
,
status
))
break
;
drain_content
(
request
);
/* recurse synchronously */
if
((
ret
=
send_request
(
request
,
NULL
,
0
,
request
->
optional
,
request
->
optional_len
,
0
,
0
,
FALSE
)))
continue
;
...
...
@@ -3062,7 +3062,7 @@ static HRESULT WINAPI winhttp_request_SetCredentials(
DWORD
target
,
scheme
=
WINHTTP_AUTH_SCHEME_BASIC
;
/* FIXME: query supported schemes */
DWORD
err
=
ERROR_SUCCESS
;
TRACE
(
"%p, %s, %p
\n
"
,
request
,
debugstr_w
(
username
),
password
);
TRACE
(
"%p, %s, %p
, 0x%08x
\n
"
,
request
,
debugstr_w
(
username
),
password
,
flags
);
EnterCriticalSection
(
&
request
->
cs
);
if
(
request
->
state
<
REQUEST_STATE_OPEN
)
...
...
dlls/winhttp/tests/winhttp.c
View file @
d3f75190
...
...
@@ -2317,9 +2317,7 @@ static void test_basic_authentication(int port)
ok
(
ret
||
broken
(
error
==
ERROR_WINHTTP_SHUTDOWN
||
error
==
ERROR_WINHTTP_TIMEOUT
)
/* XP */
,
"failed to read data %u
\n
"
,
GetLastError
());
if
(
ret
)
{
todo_wine
ok
(
size
==
12
,
"expected 12, got %u
\n
"
,
size
);
todo_wine
ok
(
!
memcmp
(
buffer
,
unauthorized
,
12
),
"got %s
\n
"
,
buffer
);
}
...
...
@@ -3651,7 +3649,6 @@ static void test_IWinHttpRequest(int port)
hr
=
IWinHttpRequest_get_ResponseText
(
req
,
&
response
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
todo_wine
ok
(
!
memcmp
(
response
,
unauthW
,
sizeof
(
unauthW
)
),
"got %s
\n
"
,
wine_dbgstr_w
(
response
)
);
SysFreeString
(
response
);
...
...
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