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
0ff1b0c3
Commit
0ff1b0c3
authored
Aug 03, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Set referer HTTP header in nsIHttpChannel::SetReferrerWithPolicy.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3cb45c4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
nsio.c
dlls/mshtml/nsio.c
+8
-0
No files found.
dlls/mshtml/nsio.c
View file @
0ff1b0c3
...
...
@@ -1303,7 +1303,11 @@ static nsresult NSAPI nsChannel_SetReferrerWithPolicy(nsIHttpChannel *iface, nsI
nsChannel
*
This
=
impl_from_nsIHttpChannel
(
iface
);
DWORD
channel_scheme
,
referrer_scheme
;
nsWineURI
*
referrer
;
BSTR
referrer_uri
;
nsresult
nsres
;
HRESULT
hres
;
static
const
WCHAR
refererW
[]
=
{
'R'
,
'e'
,
'f'
,
'e'
,
'r'
,
'e'
,
'r'
};
TRACE
(
"(%p)->(%p %d)
\n
"
,
This
,
aReferrer
,
aReferrerPolicy
);
...
...
@@ -1338,6 +1342,10 @@ static nsresult NSAPI nsChannel_SetReferrerWithPolicy(nsIHttpChannel *iface, nsI
return
NS_OK
;
}
hres
=
IUri_GetDisplayUri
(
referrer
->
uri
,
&
referrer_uri
);
if
(
SUCCEEDED
(
hres
)
)
set_http_header
(
&
This
->
request_headers
,
refererW
,
sizeof
(
refererW
)
/
sizeof
(
WCHAR
),
referrer_uri
,
SysStringLen
(
referrer_uri
));
This
->
referrer
=
(
nsIURI
*
)
&
referrer
->
nsIFileURL_iface
;
return
NS_OK
;
}
...
...
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