소스 검색

Merge pull request #3736 from owenconti/bug/3730-empty-body-responses

Fixes #3730 - Empty response content
bubble
kyle 7 년 전
committed by GitHub
부모
커밋
13f888999f
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -1
      src/core/components/response-body.jsx

+ 5
- 1
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 = <HighlightCode value={ content } />
} else {
} else if ( content.size > 0 ) {
// We don't know the contentType, but there was some content returned
bodyEl = <div>Unknown response type</div>
} else {
// We don't know the contentType and there was no content returned
bodyEl = null
}

return ( !bodyEl ? null : <div>


불러오는 중...
취소
저장