Merge pull request #169 from gordalina/fix-response-headers

Reponse headers are inserted into the DOM as HTML instead of Text
This commit is contained in:
Jordi Boggiano 2013-04-09 00:20:24 -07:00
commit 8af10934fe

View File

@ -121,7 +121,7 @@
var text = xhr.status + ' ' + xhr.statusText + "\n\n"; var text = xhr.status + ' ' + xhr.statusText + "\n\n";
text += xhr.getAllResponseHeaders(); text += xhr.getAllResponseHeaders();
container.html(text); container.text(text);
}; };
var displayResponse = function(xhr, method, url, result_container) { var displayResponse = function(xhr, method, url, result_container) {