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
f6bfc309
Commit
f6bfc309
authored
Dec 23, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Clear request headers on Open().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4ab21edf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
httprequest.c
dlls/msxml3/httprequest.c
+16
-11
No files found.
dlls/msxml3/httprequest.c
View file @
f6bfc309
...
...
@@ -176,6 +176,19 @@ static void free_response_headers(httprequest *This)
This
->
raw_respheaders
=
NULL
;
}
static
void
free_request_headers
(
httprequest
*
This
)
{
struct
httpheader
*
header
,
*
header2
;
LIST_FOR_EACH_ENTRY_SAFE
(
header
,
header2
,
&
This
->
reqheaders
,
struct
httpheader
,
entry
)
{
list_remove
(
&
header
->
entry
);
SysFreeString
(
header
->
header
);
SysFreeString
(
header
->
value
);
heap_free
(
header
);
}
}
struct
BindStatusCallback
{
IBindStatusCallback
IBindStatusCallback_iface
;
...
...
@@ -888,6 +901,7 @@ static HRESULT httprequest_open(httprequest *This, BSTR method, BSTR url,
SysFreeString
(
This
->
user
);
SysFreeString
(
This
->
password
);
This
->
user
=
This
->
password
=
NULL
;
free_request_headers
(
This
);
if
(
!
strcmpiW
(
method
,
MethodGetW
))
{
...
...
@@ -1273,8 +1287,6 @@ static HRESULT httprequest_put_onreadystatechange(httprequest *This, IDispatch *
static
void
httprequest_release
(
httprequest
*
This
)
{
struct
httpheader
*
header
,
*
header2
;
if
(
This
->
site
)
IUnknown_Release
(
This
->
site
);
if
(
This
->
uri
)
...
...
@@ -1286,15 +1298,8 @@ static void httprequest_release(httprequest *This)
SysFreeString
(
This
->
user
);
SysFreeString
(
This
->
password
);
/* request headers */
LIST_FOR_EACH_ENTRY_SAFE
(
header
,
header2
,
&
This
->
reqheaders
,
struct
httpheader
,
entry
)
{
list_remove
(
&
header
->
entry
);
SysFreeString
(
header
->
header
);
SysFreeString
(
header
->
value
);
heap_free
(
header
);
}
/* response headers */
/* cleanup headers lists */
free_request_headers
(
This
);
free_response_headers
(
This
);
SysFreeString
(
This
->
status_text
);
...
...
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