#3072 - Display response body and headers for requests that result in non-200 responses. Add test to ensure error and response are merged correctly

This commit is contained in:
Owen Conti
2017-06-25 13:28:14 -06:00
parent 165c1d7fcb
commit ddb5704637
4 changed files with 80 additions and 25 deletions

View File

@@ -27,9 +27,7 @@ export default class LiveResponse extends React.Component {
const headers = response.get("headers").toJS()
const notDocumented = response.get("notDocumented")
const isError = response.get("error")
const body = isError ? response.get("response").get("text") : response.get("text")
const body = response.get("text")
const headersKeys = Object.keys(headers)
const contentType = headers["content-type"]