Projects STRLCPY GraphSpy Commits 1dae0680
🤬
  • ■ ■ ■ ■ ■ ■
    GraphSpy/templates/custom_requests.html
    skipped 277 lines
    278 278   return;
    279 279   }
    280 280   let responseJSON = JSON.parse(response.responseText);
    281  - if (responseJSON.response_type == "json") {
    282  - $("#response_body").text(JSON.stringify(responseJSON.response_text, undefined, 4));
    283  - } else if (responseJSON.response_type == "xml") {
    284  - $("#response_body").text(prettifyXml(responseJSON.response_text));
    285  - } else {
     281 + try {
     282 + if (responseJSON.response_type == "json") {
     283 + $("#response_body").text(JSON.stringify(JSON.parse(responseJSON.response_text), undefined, 4));
     284 + } else if (responseJSON.response_type == "xml") {
     285 + $("#response_body").text(prettifyXml(responseJSON.response_text));
     286 + } else {
     287 + $("#response_body").text(responseJSON.response_text);
     288 + }
     289 + }catch (e) {
    286 290   $("#response_body").text(responseJSON.response_text);
    287 291   }
    288 292   $("#response_status_code").text(responseJSON.response_status_code);
    skipped 85 lines
Please wait...
Page is in error, reload to recover