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
1c07d94d
Commit
1c07d94d
authored
Jan 14, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Send a content length header for all verbs other than GET.
parent
31fd0663
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
http.c
dlls/wininet/http.c
+1
-1
http.c
dlls/wininet/tests/http.c
+5
-1
No files found.
dlls/wininet/http.c
View file @
1c07d94d
...
...
@@ -3236,7 +3236,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
if
(
!
lpwhr
->
lpszVerb
)
lpwhr
->
lpszVerb
=
WININET_strdupW
(
szGET
);
if
(
dwContentLength
||
!
strcmpW
(
lpwhr
->
lpszVerb
,
szPost
))
if
(
dwContentLength
||
strcmpW
(
lpwhr
->
lpszVerb
,
szGET
))
{
sprintfW
(
contentLengthStr
,
szContentLength
,
dwContentLength
);
HTTP_HttpAddRequestHeadersW
(
lpwhr
,
contentLengthStr
,
-
1L
,
HTTP_ADDREQ_FLAG_ADD_IF_NEW
);
...
...
dlls/wininet/tests/http.c
View file @
1c07d94d
...
...
@@ -1408,7 +1408,9 @@ static DWORD CALLBACK server_thread(LPVOID param)
else
send
(
c
,
notokmsg
,
sizeof
notokmsg
-
1
,
0
);
}
if
(
strstr
(
buffer
,
"POST /test5"
))
if
(
strstr
(
buffer
,
"POST /test5"
)
||
strstr
(
buffer
,
"RPC_IN_DATA /test5"
)
||
strstr
(
buffer
,
"RPC_OUT_DATA /test5"
))
{
if
(
strstr
(
buffer
,
"Content-Length: 0"
))
{
...
...
@@ -2013,6 +2015,8 @@ static void test_http_connection(void)
test_proxy_direct
(
si
.
port
);
test_header_handling_order
(
si
.
port
);
test_basic_request
(
si
.
port
,
"POST"
,
"/test5"
);
test_basic_request
(
si
.
port
,
"RPC_IN_DATA"
,
"/test5"
);
test_basic_request
(
si
.
port
,
"RPC_OUT_DATA"
,
"/test5"
);
test_basic_request
(
si
.
port
,
"GET"
,
"/test6"
);
test_connection_header
(
si
.
port
);
test_http1_1
(
si
.
port
);
...
...
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