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
5132fb44
Commit
5132fb44
authored
Feb 25, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Feb 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Fix retrieving raw headers.
parent
4e5c1bf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
http.c
dlls/wininet/http.c
+14
-9
No files found.
dlls/wininet/http.c
View file @
5132fb44
...
...
@@ -3080,6 +3080,20 @@ static INT HTTP_GetResponseHeaders(LPWININETHTTPREQW lpwhr)
}
while
(
!
strcmpW
(
status_code
,
szHundred
));
/* ignore "100 Continue" responses */
/* Add status code */
HTTP_ProcessHeader
(
lpwhr
,
szStatus
,
status_code
,
HTTP_ADDHDR_FLAG_REPLACE
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszVersion
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszStatusText
);
lpwhr
->
lpszVersion
=
WININET_strdupW
(
buffer
);
lpwhr
->
lpszStatusText
=
WININET_strdupW
(
status_text
);
/* Restore the spaces */
*
(
status_code
-
1
)
=
' '
;
*
(
status_text
-
1
)
=
' '
;
/* regenerate raw headers */
while
(
cchRawHeaders
+
buflen
+
strlenW
(
szCrLf
)
>
cchMaxRawHeaders
)
{
...
...
@@ -3092,15 +3106,6 @@ static INT HTTP_GetResponseHeaders(LPWININETHTTPREQW lpwhr)
cchRawHeaders
+=
sizeof
(
szCrLf
)
/
sizeof
(
szCrLf
[
0
])
-
1
;
lpszRawHeaders
[
cchRawHeaders
]
=
'\0'
;
HTTP_ProcessHeader
(
lpwhr
,
szStatus
,
status_code
,
HTTP_ADDHDR_FLAG_REPLACE
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszVersion
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszStatusText
);
lpwhr
->
lpszVersion
=
WININET_strdupW
(
buffer
);
lpwhr
->
lpszStatusText
=
WININET_strdupW
(
status_text
);
/* Parse each response line */
do
{
...
...
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