mshtml: Skip headers problematic for cache.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d9a0c55e7e
commit
80893bcf52
@ -386,7 +386,6 @@ static void pump_msgs(BOOL *b)
|
|||||||
struct HEADER_TYPE {
|
struct HEADER_TYPE {
|
||||||
const char *key;
|
const char *key;
|
||||||
const char *value;
|
const char *value;
|
||||||
BOOL skip_all_headers;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static void create_xmlhttprequest(IHTMLDocument2 *doc)
|
static void create_xmlhttprequest(IHTMLDocument2 *doc)
|
||||||
@ -451,9 +450,6 @@ static void test_header(const struct HEADER_TYPE expect[], int num)
|
|||||||
SysFreeString(key);
|
SysFreeString(key);
|
||||||
SysFreeString(text);
|
SysFreeString(text);
|
||||||
|
|
||||||
if(expect[i].skip_all_headers)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
strcpy(buf, expect[i].key);
|
strcpy(buf, expect[i].key);
|
||||||
strcat(buf, ": ");
|
strcat(buf, ": ");
|
||||||
strcat(buf, expect[i].value);
|
strcat(buf, expect[i].value);
|
||||||
@ -585,7 +581,6 @@ static void test_sync_xhr(IHTMLDocument2 *doc, const char *xml_url, const char *
|
|||||||
LONG val;
|
LONG val;
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
static const struct HEADER_TYPE expect_headers[] = {
|
static const struct HEADER_TYPE expect_headers[] = {
|
||||||
{"Accept-Ranges", "bytes", TRUE},
|
|
||||||
{"Content-Length", "51"},
|
{"Content-Length", "51"},
|
||||||
{"Content-Type", "application/xml"}
|
{"Content-Type", "application/xml"}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user