Remove isRequired from ResponseBody's contentType property as responses without a Content-Type header will not have a value to pass
This commit is contained in:
@@ -6,7 +6,7 @@ export default class ResponseBody extends React.Component {
|
|||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
content: PropTypes.any.isRequired,
|
content: PropTypes.any.isRequired,
|
||||||
contentType: PropTypes.string.isRequired,
|
contentType: PropTypes.string,
|
||||||
getComponent: PropTypes.func.isRequired,
|
getComponent: PropTypes.func.isRequired,
|
||||||
headers: PropTypes.object,
|
headers: PropTypes.object,
|
||||||
url: PropTypes.string
|
url: PropTypes.string
|
||||||
|
|||||||
Reference in New Issue
Block a user