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
ebc4fd14
Commit
ebc4fd14
authored
Jan 27, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Don't attempt to read data after receiving a response to a HEAD request.
parent
07ed66f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
request.c
dlls/winhttp/request.c
+5
-1
winhttp_private.h
dlls/winhttp/winhttp_private.h
+1
-0
No files found.
dlls/winhttp/request.c
View file @
ebc4fd14
...
...
@@ -2815,7 +2815,11 @@ static HRESULT request_receive( struct winhttp_request *request )
return
HRESULT_FROM_WIN32
(
get_last_error
()
);
}
if
((
err
=
wait_for_completion
(
request
)))
return
HRESULT_FROM_WIN32
(
err
);
if
(
!
strcmpW
(
request
->
verb
,
headW
))
{
request
->
state
=
REQUEST_STATE_RESPONSE_RECEIVED
;
return
S_OK
;
}
if
(
!
(
request
->
buffer
=
heap_alloc
(
buflen
)))
return
E_OUTOFMEMORY
;
request
->
buffer
[
0
]
=
0
;
size
=
total_bytes_read
=
0
;
...
...
dlls/winhttp/winhttp_private.h
View file @
ebc4fd14
...
...
@@ -46,6 +46,7 @@
static
const
WCHAR
getW
[]
=
{
'G'
,
'E'
,
'T'
,
0
};
static
const
WCHAR
postW
[]
=
{
'P'
,
'O'
,
'S'
,
'T'
,
0
};
static
const
WCHAR
headW
[]
=
{
'H'
,
'E'
,
'A'
,
'D'
,
0
};
static
const
WCHAR
slashW
[]
=
{
'/'
,
0
};
static
const
WCHAR
http1_0
[]
=
{
'H'
,
'T'
,
'T'
,
'P'
,
'/'
,
'1'
,
'.'
,
'0'
,
0
};
static
const
WCHAR
http1_1
[]
=
{
'H'
,
'T'
,
'T'
,
'P'
,
'/'
,
'1'
,
'.'
,
'1'
,
0
};
...
...
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