fix: header access for Edge browser (#4383)

This commit is contained in:
Helder Sepulveda
2018-03-29 19:24:46 -04:00
committed by kyle
parent 8189fd2473
commit 762a32b59b

View File

@@ -60,7 +60,7 @@ export default class LiveResponse extends React.Component {
const body = response.get("text") const body = response.get("text")
const duration = response.get("duration") const duration = response.get("duration")
const headersKeys = Object.keys(headers) const headersKeys = Object.keys(headers)
const contentType = headers["content-type"] const contentType = headers["content-type"] || headers["Content-Type"]
const Curl = getComponent("curl") const Curl = getComponent("curl")
const ResponseBody = getComponent("responseBody") const ResponseBody = getComponent("responseBody")