Commit 6db51265 by Qiang Xue

send accept header for debug toolbar. [skip ci]

parent ee3fc7f8
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
settings = settings || {}; settings = settings || {};
xhr.open(settings.method || 'GET', url, true); xhr.open(settings.method || 'GET', url, true);
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
xhr.setRequestHeader('Accept', 'text/html');
xhr.onreadystatechange = function (state) { xhr.onreadystatechange = function (state) {
if (xhr.readyState == 4) { if (xhr.readyState == 4) {
if (xhr.status == 200 && settings.success) { if (xhr.status == 200 && settings.success) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment