From ec76e512e2357e60795662ffb796ec293931c544 Mon Sep 17 00:00:00 2001 From: Owen Conti Date: Sun, 8 Oct 2017 09:38:08 -0600 Subject: [PATCH] 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 :