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
6c767c4e
Commit
6c767c4e
authored
Jun 14, 2009
by
Mike Kaplinskiy
Committed by
Alexandre Julliard
Jun 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Make \r and \n valid header separators.
parent
dcf4a990
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
http.c
dlls/wininet/http.c
+3
-3
No files found.
dlls/wininet/http.c
View file @
6c767c4e
...
@@ -741,7 +741,7 @@ static BOOL HTTP_HttpAddRequestHeadersW(LPWININETHTTPREQW lpwhr,
...
@@ -741,7 +741,7 @@ static BOOL HTTP_HttpAddRequestHeadersW(LPWININETHTTPREQW lpwhr,
while
(
*
lpszEnd
!=
'\0'
)
while
(
*
lpszEnd
!=
'\0'
)
{
{
if
(
*
lpszEnd
==
'\r'
&&
*
(
lpszEnd
+
1
)
==
'\n'
)
if
(
*
lpszEnd
==
'\r'
||
*
lpszEnd
==
'\n'
)
break
;
break
;
lpszEnd
++
;
lpszEnd
++
;
}
}
...
@@ -749,10 +749,10 @@ static BOOL HTTP_HttpAddRequestHeadersW(LPWININETHTTPREQW lpwhr,
...
@@ -749,10 +749,10 @@ static BOOL HTTP_HttpAddRequestHeadersW(LPWININETHTTPREQW lpwhr,
if
(
*
lpszStart
==
'\0'
)
if
(
*
lpszStart
==
'\0'
)
break
;
break
;
if
(
*
lpszEnd
==
'\r'
)
if
(
*
lpszEnd
==
'\r'
||
*
lpszEnd
==
'\n'
)
{
{
*
lpszEnd
=
'\0'
;
*
lpszEnd
=
'\0'
;
lpszEnd
+=
2
;
/* Jump over \r\n
*/
lpszEnd
++
;
/* Jump over newline
*/
}
}
TRACE
(
"interpreting header %s
\n
"
,
debugstr_w
(
lpszStart
));
TRACE
(
"interpreting header %s
\n
"
,
debugstr_w
(
lpszStart
));
if
(
*
lpszStart
==
'\0'
)
if
(
*
lpszStart
==
'\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