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
66af8b5f
Commit
66af8b5f
authored
Sep 10, 2004
by
Uwe Bonnes
Committed by
Alexandre Julliard
Sep 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Strip dangling \r\n from HTTP_HttpSendRequest.
parent
e2f850e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
http.c
dlls/wininet/http.c
+9
-0
No files found.
dlls/wininet/http.c
View file @
66af8b5f
...
@@ -1532,6 +1532,15 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
...
@@ -1532,6 +1532,15 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
/* If we don't have a path we set it to root */
/* If we don't have a path we set it to root */
if
(
NULL
==
lpwhr
->
lpszPath
)
if
(
NULL
==
lpwhr
->
lpszPath
)
lpwhr
->
lpszPath
=
WININET_strdupW
(
szSlash
);
lpwhr
->
lpszPath
=
WININET_strdupW
(
szSlash
);
else
/* remove \r and \n*/
{
int
nLen
=
strlenW
(
lpwhr
->
lpszPath
);
while
((
nLen
>
0
)
&&
((
lpwhr
->
lpszPath
[
nLen
-
1
]
==
'\r'
)
||
(
lpwhr
->
lpszPath
[
nLen
-
1
]
==
'\n'
)))
{
nLen
--
;
lpwhr
->
lpszPath
[
nLen
]
=
'\0'
;
}
}
if
(
CSTR_EQUAL
!=
CompareStringW
(
LOCALE_SYSTEM_DEFAULT
,
NORM_IGNORECASE
,
if
(
CSTR_EQUAL
!=
CompareStringW
(
LOCALE_SYSTEM_DEFAULT
,
NORM_IGNORECASE
,
lpwhr
->
lpszPath
,
strlenW
(
szHttp
),
szHttp
,
strlenW
(
szHttp
)
)
lpwhr
->
lpszPath
,
strlenW
(
szHttp
),
szHttp
,
strlenW
(
szHttp
)
)
...
...
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