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
42c7dc94
Commit
42c7dc94
authored
Jun 24, 2009
by
Eric van Beurden
Committed by
Alexandre Julliard
Jun 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Add a terminating empty line to the headers if necessary.
parent
d1c89d0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
http.c
dlls/wininet/http.c
+13
-0
No files found.
dlls/wininet/http.c
View file @
42c7dc94
...
...
@@ -4337,6 +4337,19 @@ static INT HTTP_GetResponseHeaders(LPWININETHTTPREQW lpwhr, BOOL clear)
}
}
while
(
1
);
/* make sure the response header is terminated with an empty line. Some apps really
truly care about that empty line being there for some reason. Just add it to the
header. */
if
(
cchRawHeaders
+
strlenW
(
szCrLf
)
>
cchMaxRawHeaders
)
{
cchMaxRawHeaders
=
cchRawHeaders
+
strlenW
(
szCrLf
);
temp
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
lpszRawHeaders
,
(
cchMaxRawHeaders
+
1
)
*
sizeof
(
WCHAR
));
if
(
temp
==
NULL
)
goto
lend
;
lpszRawHeaders
=
temp
;
}
memcpy
(
&
lpszRawHeaders
[
cchRawHeaders
],
szCrLf
,
sizeof
(
szCrLf
));
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszRawHeaders
);
lpwhr
->
lpszRawHeaders
=
lpszRawHeaders
;
TRACE
(
"raw headers: %s
\n
"
,
debugstr_w
(
lpszRawHeaders
));
...
...
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