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
ffec675b
Commit
ffec675b
authored
Jul 14, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Use stored server name in HTTP_InsertCookies.
parent
8980a6fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
http.c
dlls/wininet/http.c
+2
-7
No files found.
dlls/wininet/http.c
View file @
ffec675b
...
@@ -4177,16 +4177,11 @@ static LPWSTR HTTP_build_req( LPCWSTR *list, int len )
...
@@ -4177,16 +4177,11 @@ static LPWSTR HTTP_build_req( LPCWSTR *list, int len )
static
void
HTTP_InsertCookies
(
http_request_t
*
request
)
static
void
HTTP_InsertCookies
(
http_request_t
*
request
)
{
{
DWORD
cookie_size
,
size
,
cnt
=
0
;
DWORD
cookie_size
,
size
,
cnt
=
0
;
HTTPHEADERW
*
host
;
WCHAR
*
cookies
;
WCHAR
*
cookies
;
static
const
WCHAR
cookieW
[]
=
{
'C'
,
'o'
,
'o'
,
'k'
,
'i'
,
'e'
,
':'
,
' '
,
0
};
static
const
WCHAR
cookieW
[]
=
{
'C'
,
'o'
,
'o'
,
'k'
,
'i'
,
'e'
,
':'
,
' '
,
0
};
host
=
HTTP_GetHeader
(
request
,
hostW
);
if
(
get_cookie
(
request
->
server
->
name
,
request
->
path
,
NULL
,
&
cookie_size
,
INTERNET_COOKIE_HTTPONLY
)
!=
ERROR_SUCCESS
)
if
(
!
host
)
return
;
if
(
get_cookie
(
host
->
lpszValue
,
request
->
path
,
NULL
,
&
cookie_size
,
INTERNET_COOKIE_HTTPONLY
)
!=
ERROR_SUCCESS
)
return
;
return
;
size
=
sizeof
(
cookieW
)
+
cookie_size
*
sizeof
(
WCHAR
)
+
sizeof
(
szCrLf
);
size
=
sizeof
(
cookieW
)
+
cookie_size
*
sizeof
(
WCHAR
)
+
sizeof
(
szCrLf
);
...
@@ -4194,7 +4189,7 @@ static void HTTP_InsertCookies(http_request_t *request)
...
@@ -4194,7 +4189,7 @@ static void HTTP_InsertCookies(http_request_t *request)
return
;
return
;
cnt
+=
sprintfW
(
cookies
,
cookieW
);
cnt
+=
sprintfW
(
cookies
,
cookieW
);
get_cookie
(
host
->
lpszValu
e
,
request
->
path
,
cookies
+
cnt
,
&
cookie_size
,
INTERNET_COOKIE_HTTPONLY
);
get_cookie
(
request
->
server
->
nam
e
,
request
->
path
,
cookies
+
cnt
,
&
cookie_size
,
INTERNET_COOKIE_HTTPONLY
);
strcatW
(
cookies
,
szCrLf
);
strcatW
(
cookies
,
szCrLf
);
HTTP_HttpAddRequestHeadersW
(
request
,
cookies
,
strlenW
(
cookies
),
HTTP_ADDREQ_FLAG_REPLACE
);
HTTP_HttpAddRequestHeadersW
(
request
,
cookies
,
strlenW
(
cookies
),
HTTP_ADDREQ_FLAG_REPLACE
);
...
...
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