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 d6d78d4 commit 8ede527Copy full SHA for 8ede527
packages/apps-engine/src/definition/api/ApiEndpoint.ts
@@ -30,7 +30,7 @@ export abstract class ApiEndpoint implements IApiEndpoint {
30
* @param reponse
31
*/
32
protected json(response: IApiResponseJSON): IApiResponse {
33
- if (!response?.headers['content-type']) {
+ if (!response?.headers?.['content-type']) {
34
response.headers = response.headers || {};
35
response.headers['content-type'] = 'application/json';
36
}
0 commit comments