We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3a30a9 commit a15770bCopy full SHA for a15770b
src/components/api-request.js
@@ -1497,7 +1497,7 @@ export default class ApiRequest extends LitElement {
1497
respHeadersObj[hdr] = hdrVal;
1498
this.responseHeaders = `${this.responseHeaders}${hdr}: ${hdrVal}\n`;
1499
});
1500
- const contentType = fetchResponse.headers.get('content-type');
+ const contentType = fetchResponse.headers.get('content-type').split(';')[0].trim();;
1501
const respEmpty = (await fetchResponse.clone().text()).length === 0;
1502
if (respEmpty) {
1503
this.responseText = '';
0 commit comments