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
04a11bb1
Commit
04a11bb1
authored
Sep 03, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Add zero value content length header to POST requests without additional data.
parent
96bf72f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
request.c
dlls/winhttp/request.c
+3
-2
No files found.
dlls/winhttp/request.c
View file @
04a11bb1
...
@@ -727,6 +727,7 @@ static BOOL send_request( request_t *request, LPCWSTR headers, DWORD headers_len
...
@@ -727,6 +727,7 @@ static BOOL send_request( request_t *request, LPCWSTR headers, DWORD headers_len
static
const
WCHAR
keep_alive
[]
=
{
'K'
,
'e'
,
'e'
,
'p'
,
'-'
,
'A'
,
'l'
,
'i'
,
'v'
,
'e'
,
0
};
static
const
WCHAR
keep_alive
[]
=
{
'K'
,
'e'
,
'e'
,
'p'
,
'-'
,
'A'
,
'l'
,
'i'
,
'v'
,
'e'
,
0
};
static
const
WCHAR
no_cache
[]
=
{
'n'
,
'o'
,
'-'
,
'c'
,
'a'
,
'c'
,
'h'
,
'e'
,
0
};
static
const
WCHAR
no_cache
[]
=
{
'n'
,
'o'
,
'-'
,
'c'
,
'a'
,
'c'
,
'h'
,
'e'
,
0
};
static
const
WCHAR
length_fmt
[]
=
{
'%'
,
'l'
,
'd'
,
0
};
static
const
WCHAR
length_fmt
[]
=
{
'%'
,
'l'
,
'd'
,
0
};
static
const
WCHAR
post
[]
=
{
'P'
,
'O'
,
'S'
,
'T'
,
0
};
BOOL
ret
=
FALSE
;
BOOL
ret
=
FALSE
;
connect_t
*
connect
=
request
->
connect
;
connect_t
*
connect
=
request
->
connect
;
...
@@ -742,10 +743,10 @@ static BOOL send_request( request_t *request, LPCWSTR headers, DWORD headers_len
...
@@ -742,10 +743,10 @@ static BOOL send_request( request_t *request, LPCWSTR headers, DWORD headers_len
if
(
connect
->
hostname
)
if
(
connect
->
hostname
)
process_header
(
request
,
attr_host
,
connect
->
hostname
,
WINHTTP_ADDREQ_FLAG_ADD_IF_NEW
,
TRUE
);
process_header
(
request
,
attr_host
,
connect
->
hostname
,
WINHTTP_ADDREQ_FLAG_ADD_IF_NEW
,
TRUE
);
if
(
optional_len
)
if
(
total_len
||
!
strcmpW
(
request
->
verb
,
post
)
)
{
{
WCHAR
length
[
21
];
/* decimal long int + null */
WCHAR
length
[
21
];
/* decimal long int + null */
sprintfW
(
length
,
length_fmt
,
option
al_len
);
sprintfW
(
length
,
length_fmt
,
tot
al_len
);
process_header
(
request
,
attr_content_length
,
length
,
WINHTTP_ADDREQ_FLAG_ADD_IF_NEW
,
TRUE
);
process_header
(
request
,
attr_content_length
,
length
,
WINHTTP_ADDREQ_FLAG_ADD_IF_NEW
,
TRUE
);
}
}
if
(
!
(
request
->
hdr
.
flags
&
WINHTTP_DISABLE_KEEP_ALIVE
))
if
(
!
(
request
->
hdr
.
flags
&
WINHTTP_DISABLE_KEEP_ALIVE
))
...
...
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