mshtml: Set proposed MIME to text/html on main document.
This commit is contained in:
parent
e62a8ee0d2
commit
e4e86a7c0b
|
@ -1058,6 +1058,8 @@ static void on_stop_nsrequest(nsChannelBSC *This, HRESULT result)
|
||||||
|
|
||||||
static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
|
static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
|
||||||
{
|
{
|
||||||
|
static const WCHAR mimeTextHtml[] = {'t','e','x','t','/','h','t','m','l',0};
|
||||||
|
|
||||||
DWORD read;
|
DWORD read;
|
||||||
nsresult nsres;
|
nsresult nsres;
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
|
@ -1094,7 +1096,8 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
|
||||||
if(!This->nschannel->content_type) {
|
if(!This->nschannel->content_type) {
|
||||||
WCHAR *mime;
|
WCHAR *mime;
|
||||||
|
|
||||||
hres = FindMimeFromData(NULL, NULL, This->nsstream->buf, This->nsstream->buf_size, NULL, 0, &mime, 0);
|
hres = FindMimeFromData(NULL, NULL, This->nsstream->buf, This->nsstream->buf_size,
|
||||||
|
This->window ? mimeTextHtml : NULL, 0, &mime, 0);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
return hres;
|
return hres;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue