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
7707a765
Commit
7707a765
authored
Mar 10, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Mar 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fully delete custom headers on connection opening.
- Free unneeded memory on clearing of standard headers. - Fix index sanity test in delete function.
parent
401d4cf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
http.c
dlls/wininet/http.c
+7
-2
No files found.
dlls/wininet/http.c
View file @
7707a765
...
...
@@ -1977,6 +1977,8 @@ static void HTTP_clear_response_headers( LPWININETHTTPREQW lpwhr )
if
(
lpwhr
->
StdHeaders
[
i
].
wFlags
&
HDR_ISREQUEST
)
continue
;
HTTP_ReplaceHeaderValue
(
&
lpwhr
->
StdHeaders
[
i
],
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
StdHeaders
[
i
].
lpszField
);
lpwhr
->
StdHeaders
[
i
].
lpszField
=
NULL
;
}
for
(
i
=
0
;
i
<
lpwhr
->
nCustHeaders
;
i
++
)
{
...
...
@@ -1986,7 +1988,8 @@ static void HTTP_clear_response_headers( LPWININETHTTPREQW lpwhr )
continue
;
if
(
lpwhr
->
pCustHeaders
[
i
].
wFlags
&
HDR_ISREQUEST
)
continue
;
HTTP_ReplaceHeaderValue
(
&
lpwhr
->
pCustHeaders
[
i
],
NULL
);
HTTP_DeleteCustomHeader
(
lpwhr
,
i
);
i
--
;
}
}
...
...
@@ -2163,6 +2166,8 @@ LPWSTR * HTTP_InterpretHttpHeader(LPCWSTR buffer)
if
(
!
pszColon
)
{
HTTP_FreeTokens
(
pTokenPair
);
if
(
buffer
[
0
])
TRACE
(
"No ':' in line: %s
\n
"
,
debugstr_w
(
buffer
));
return
NULL
;
}
...
...
@@ -2615,7 +2620,7 @@ BOOL HTTP_DeleteCustomHeader(LPWININETHTTPREQW lpwhr, DWORD index)
{
if
(
lpwhr
->
nCustHeaders
<=
0
)
return
FALSE
;
if
(
lpwhr
->
nCustHeaders
>=
index
)
if
(
index
>=
lpwhr
->
nCustHeaders
)
return
FALSE
;
lpwhr
->
nCustHeaders
--
;
...
...
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