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
7227c29a
Commit
7227c29a
authored
Jul 26, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Add a default user agent header.
parent
050058c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
request.c
dlls/winhttp/request.c
+5
-1
No files found.
dlls/winhttp/request.c
View file @
7227c29a
...
@@ -2429,6 +2429,10 @@ static HRESULT WINAPI winhttp_request_Open(
...
@@ -2429,6 +2429,10 @@ static HRESULT WINAPI winhttp_request_Open(
{
{
static
const
WCHAR
typeW
[]
=
{
'*'
,
'/'
,
'*'
,
0
};
static
const
WCHAR
typeW
[]
=
{
'*'
,
'/'
,
'*'
,
0
};
static
const
WCHAR
*
acceptW
[]
=
{
typeW
,
NULL
};
static
const
WCHAR
*
acceptW
[]
=
{
typeW
,
NULL
};
static
const
WCHAR
user_agentW
[]
=
{
'M'
,
'o'
,
'z'
,
'i'
,
'l'
,
'l'
,
'a'
,
'/'
,
'4'
,
'.'
,
'0'
,
' '
,
'('
,
'c'
,
'o'
,
'm'
,
'p'
,
'a'
,
't'
,
'i'
,
'b'
,
'l'
,
'e'
,
';'
,
' '
,
'W'
,
'i'
,
'n'
,
'3'
,
'2'
,
';'
,
' '
,
'W'
,
'i'
,
'n'
,
'H'
,
't'
,
't'
,
'p'
,
'.'
,
'W'
,
'i'
,
'n'
,
'H'
,
't'
,
't'
,
'p'
,
'R'
,
'e'
,
'q'
,
'u'
,
'e'
,
's'
,
't'
,
'.'
,
'5'
,
')'
,
0
};
struct
winhttp_request
*
request
=
impl_from_IWinHttpRequest
(
iface
);
struct
winhttp_request
*
request
=
impl_from_IWinHttpRequest
(
iface
);
HINTERNET
hsession
=
NULL
,
hconnect
=
NULL
,
hrequest
;
HINTERNET
hsession
=
NULL
,
hconnect
=
NULL
,
hrequest
;
URL_COMPONENTS
uc
;
URL_COMPONENTS
uc
;
...
@@ -2458,7 +2462,7 @@ static HRESULT WINAPI winhttp_request_Open(
...
@@ -2458,7 +2462,7 @@ static HRESULT WINAPI winhttp_request_Open(
path
[
uc
.
dwUrlPathLength
]
=
0
;
path
[
uc
.
dwUrlPathLength
]
=
0
;
if
(
V_BOOL
(
&
async
)
==
VARIANT_TRUE
)
flags
|=
WINHTTP_FLAG_ASYNC
;
if
(
V_BOOL
(
&
async
)
==
VARIANT_TRUE
)
flags
|=
WINHTTP_FLAG_ASYNC
;
if
(
!
(
hsession
=
WinHttpOpen
(
NULL
,
WINHTTP_ACCESS_TYPE_DEFAULT_PROXY
,
NULL
,
NULL
,
flags
)))
if
(
!
(
hsession
=
WinHttpOpen
(
user_agentW
,
WINHTTP_ACCESS_TYPE_DEFAULT_PROXY
,
NULL
,
NULL
,
flags
)))
{
{
err
=
get_last_error
();
err
=
get_last_error
();
goto
error
;
goto
error
;
...
...
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