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
3858e354
Commit
3858e354
authored
Jul 31, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Explicity delete Content-Length header for gzip encoded connection.
parent
69b29fa0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
http.c
dlls/wininet/http.c
+5
-12
No files found.
dlls/wininet/http.c
View file @
3858e354
...
@@ -218,7 +218,7 @@ static void wininet_zfree(voidpf opaque, voidpf address)
...
@@ -218,7 +218,7 @@ static void wininet_zfree(voidpf opaque, voidpf address)
static
void
init_gzip_stream
(
http_request_t
*
req
)
static
void
init_gzip_stream
(
http_request_t
*
req
)
{
{
gzip_stream_t
*
gzip_stream
;
gzip_stream_t
*
gzip_stream
;
int
zres
;
int
index
,
zres
;
gzip_stream
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
gzip_stream_t
));
gzip_stream
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
gzip_stream_t
));
gzip_stream
->
zstream
.
zalloc
=
wininet_zalloc
;
gzip_stream
->
zstream
.
zalloc
=
wininet_zalloc
;
...
@@ -240,6 +240,10 @@ static void init_gzip_stream(http_request_t *req)
...
@@ -240,6 +240,10 @@ static void init_gzip_stream(http_request_t *req)
}
}
req
->
gzip_stream
=
gzip_stream
;
req
->
gzip_stream
=
gzip_stream
;
index
=
HTTP_GetCustomHeaderIndex
(
req
,
szContent_Length
,
0
,
FALSE
);
if
(
index
!=
-
1
)
HTTP_DeleteCustomHeader
(
req
,
index
);
}
}
#else
#else
...
@@ -2635,17 +2639,6 @@ static BOOL HTTP_HttpQueryInfoW(http_request_t *lpwhr, DWORD dwInfoLevel,
...
@@ -2635,17 +2639,6 @@ static BOOL HTTP_HttpQueryInfoW(http_request_t *lpwhr, DWORD dwInfoLevel,
if
(
!
lpBuffer
)
return
FALSE
;
if
(
!
lpBuffer
)
return
FALSE
;
index
=
HTTP_GetCustomHeaderIndex
(
lpwhr
,
lpBuffer
,
requested_index
,
request_only
);
index
=
HTTP_GetCustomHeaderIndex
(
lpwhr
,
lpBuffer
,
requested_index
,
request_only
);
break
;
break
;
case
HTTP_QUERY_CONTENT_LENGTH
:
if
(
lpwhr
->
gzip_stream
)
{
INTERNET_SetLastError
(
ERROR_HTTP_HEADER_NOT_FOUND
);
return
FALSE
;
}
index
=
HTTP_GetCustomHeaderIndex
(
lpwhr
,
header_lookup
[
level
],
requested_index
,
request_only
);
break
;
case
HTTP_QUERY_RAW_HEADERS_CRLF
:
case
HTTP_QUERY_RAW_HEADERS_CRLF
:
{
{
LPWSTR
headers
;
LPWSTR
headers
;
...
...
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