<html>
<head>
<base href="https://bugs.webkit.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - JavaScript is not correctly connecting to rest api in iOS 10.3 beta"
href="https://bugs.webkit.org/show_bug.cgi?id=169970#c32">Comment # 32</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - JavaScript is not correctly connecting to rest api in iOS 10.3 beta"
href="https://bugs.webkit.org/show_bug.cgi?id=169970">bug 169970</a>
from <span class="vcard"><a class="email" href="mailto:thomasmulhall410@yahoo.com" title="paladox <thomasmulhall410@yahoo.com>"> <span class="fn">paladox</span></a>
</span></b>
<pre>I did
if (opt_opts.headers !== undefined) {
var fetchOptions = {
credentials: 'same-origin',
headers: opt_opts.headers,
};
} else {
var fetchOptions = {
credentials: 'same-origin',
// headers: opt_opts.headers,
};
}
which is the same as if(opt_opts.headers).
But still doesn't work in reloading the diff page. For example going to <a href="http://gerrit-new.wmflabs.org/r/c/2/62/tests/fixtures/layout-cloner.yaml">http://gerrit-new.wmflabs.org/r/c/2/62/tests/fixtures/layout-cloner.yaml</a> and then reloading that downloads a json file (the fix i did for headers is not on that site). It should not be downloading json files when refreshing the page. Which i presume thats why headers: is there to fix that.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>