mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
msxml3: Set referer in case with no user headers too.
This commit is contained in:
parent
687e5cd330
commit
0fc177fe2f
@ -476,14 +476,18 @@ static HRESULT WINAPI BSCHttpNegotiate_BeginningTransaction(IHttpNegotiate *ifac
|
||||
if (!list_empty(&This->request->reqheaders))
|
||||
size += This->request->reqheader_size*sizeof(WCHAR);
|
||||
|
||||
if (!size) return S_OK;
|
||||
|
||||
if (This->request->base_uri)
|
||||
{
|
||||
IUri_GetRawUri(This->request->base_uri, &base_uri);
|
||||
size += SysStringLen(base_uri)*sizeof(WCHAR) + sizeof(refererW) + sizeof(crlfW);
|
||||
}
|
||||
|
||||
if (!size)
|
||||
{
|
||||
SysFreeString(base_uri);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
buff = CoTaskMemAlloc(size);
|
||||
if (!buff)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user