From ec76e512e2357e60795662ffb796ec293931c544 Mon Sep 17 00:00:00 2001 From: Owen Conti Date: Sun, 8 Oct 2017 09:38:08 -0600 Subject: [PATCH 1/2] Fixes #3730 Add extra check for missing response content and contentType --- src/core/components/response-body.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/components/response-body.jsx b/src/core/components/response-body.jsx index 265ff679..c55c1d6d 100644 --- a/src/core/components/response-body.jsx +++ b/src/core/components/response-body.jsx @@ -83,8 +83,12 @@ export default class ResponseBody extends React.Component { // Anything else (CORS) } else if (typeof content === "string") { bodyEl = - } else { + } else if ( content.size > 0 ) { + // We don't know the contentType, but there was some content returned bodyEl =
Unknown response type
+ } else { + // We don't know the contentType and there was no content returned + bodyEl = null } return ( !bodyEl ? null :
From 2cd4989c056fd02ecf0e88c75910a1b961c2997e Mon Sep 17 00:00:00 2001 From: Owen Conti Date: Tue, 10 Oct 2017 15:54:22 -0600 Subject: [PATCH 2/2] Fixes #3646 Fix CSS selector for markdown content inside response component. --- src/style/_layout.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/style/_layout.scss b/src/style/_layout.scss index 9b38a700..95584a7c 100644 --- a/src/style/_layout.scss +++ b/src/style/_layout.scss @@ -543,14 +543,14 @@ .response-col_description__inner { - span + div.markdown, div.renderedMarkdown { font-size: 12px; font-style: italic; display: block; - margin: 10px 0; + margin: 0; padding: 10px; border-radius: 4px;