diff --git a/src/runtime/utils.lambda.ts b/src/runtime/utils.lambda.ts index 74e2ac4083..d3bb8d1267 100644 --- a/src/runtime/utils.lambda.ts +++ b/src/runtime/utils.lambda.ts @@ -84,7 +84,7 @@ function _toBuffer(data: ReadableStream | Readable | Uint8Array) { // -- Internal -- -const TEXT_TYPE_RE = /^text\/|\/(json|xml)|utf-?8/; +const TEXT_TYPE_RE = /^text\/|\/(javascript|json|xml)|utf-?8/; function isTextType(contentType = "") { return TEXT_TYPE_RE.test(contentType);