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
b9557e92
Commit
b9557e92
authored
Jun 24, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Store cookies in reverse order.
This matches more recent versions of Windows.
parent
3c5cb7f8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
cookie.c
dlls/winhttp/cookie.c
+1
-1
winhttp.c
dlls/winhttp/tests/winhttp.c
+8
-4
No files found.
dlls/winhttp/cookie.c
View file @
b9557e92
...
...
@@ -121,7 +121,7 @@ static BOOL add_cookie( session_t *session, cookie_t *cookie, WCHAR *domain_name
else
if
((
old_cookie
=
find_cookie
(
domain
,
path
,
cookie
->
name
)))
delete_cookie
(
old_cookie
);
cookie
->
path
=
strdupW
(
path
);
list_add_
tail
(
&
domain
->
cookies
,
&
cookie
->
entry
);
list_add_
head
(
&
domain
->
cookies
,
&
cookie
->
entry
);
TRACE
(
"domain %s path %s <- %s=%s
\n
"
,
debugstr_w
(
domain_name
),
debugstr_w
(
cookie
->
path
),
debugstr_w
(
cookie
->
name
),
debugstr_w
(
cookie
->
value
));
...
...
dlls/winhttp/tests/winhttp.c
View file @
b9557e92
...
...
@@ -2018,14 +2018,18 @@ static DWORD CALLBACK server_thread(LPVOID param)
if
(
strstr
(
buffer
,
"GET /cookie3"
))
{
if
(
strstr
(
buffer
,
"Cookie: name=value2; NAME=value; name=value
\r\n
"
)
||
strstr
(
buffer
,
"Cookie: name=value2; name=value; NAME=value
\r\n
"
))
send
(
c
,
okmsg
,
sizeof
(
okmsg
)
-
1
,
0
);
else
send
(
c
,
notokmsg
,
sizeof
(
notokmsg
)
-
1
,
0
);
broken
(
strstr
(
buffer
,
"Cookie: name=value2; name=value; NAME=value
\r\n
"
)
!=
NULL
))
send
(
c
,
okmsg
,
sizeof
(
okmsg
)
-
1
,
0
);
else
send
(
c
,
notokmsg
,
sizeof
(
notokmsg
)
-
1
,
0
);
}
if
(
strstr
(
buffer
,
"GET /cookie2"
))
{
if
(
strstr
(
buffer
,
"Cookie: NAME=value; name=value
\r\n
"
)
||
strstr
(
buffer
,
"Cookie: name=value; NAME=value
\r\n
"
))
send
(
c
,
okmsg
,
sizeof
(
okmsg
)
-
1
,
0
);
else
send
(
c
,
notokmsg
,
sizeof
(
notokmsg
)
-
1
,
0
);
broken
(
strstr
(
buffer
,
"Cookie: name=value; NAME=value
\r\n
"
)
!=
NULL
))
send
(
c
,
okmsg
,
sizeof
(
okmsg
)
-
1
,
0
);
else
send
(
c
,
notokmsg
,
sizeof
(
notokmsg
)
-
1
,
0
);
}
else
if
(
strstr
(
buffer
,
"GET /cookie"
))
{
...
...
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