*/
_jsonView: function()
{
- var parsedJSON = WebInspector.RequestJSONView.parseJSON(this.request.content || "");
+ var request = this.request;
+ var content = request.content;
+ content = request.contentEncoded ? window.atob(content || "") : (content || "");
+ var parsedJSON = WebInspector.RequestJSONView.parseJSON(content);
return parsedJSON ? new WebInspector.RequestJSONView(this.request, parsedJSON) : null;
},
return htmlErrorPreview;
}
- if (this.request.type === WebInspector.resourceTypes.XHR) {
+ if (this.request.resourceType() === WebInspector.resourceTypes.XHR) {
var jsonView = this._jsonView();
if (jsonView)
return jsonView;
if (this._responseView.sourceView)
return this._responseView.sourceView;
- if (this.request.type === WebInspector.resourceTypes.Other)
+ if (this.request.resourceType() === WebInspector.resourceTypes.Other)
return this._createEmptyView();
return WebInspector.RequestView.nonSourceViewForRequest(this.request);