From 1d6204901ccffa029c7beec7ff0fc15ee60a964f Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 14 Jul 2012 01:39:35 +0200 Subject: o Always showing the returned http response, including body. --- views/data.jade | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'views') diff --git a/views/data.jade b/views/data.jade index c757498..3d844a3 100644 --- a/views/data.jade +++ b/views/data.jade @@ -349,7 +349,12 @@ block inner_content h1 Formatted Body div(class='row-fluid') div(class='span12') - pre= formattedBody + if typeof rawBody == 'string' + if rawBody.length == 0 + p: i No body + else + pre= JSON.stringify(parsedBody, null, ' ') + | #{parsedBody} if typeof httpResponse != 'undefined' section(id='http-response') -- cgit v1.2.3