diff --git a/Exception.ts b/Exception.ts index e35d27c..0f64f64 100644 --- a/Exception.ts +++ b/Exception.ts @@ -91,7 +91,7 @@ export class Exception { const acceptHeader = request.headers.get('accept') const json = acceptHeader - ? acceptHeader.includes('application/json') || acceptHeader.includes('*/*') + ? acceptHeader.indexOf('application/json') > -1 || acceptHeader.indexOf('*/*') > -1 : false const body = json