Comparing version 1.1.14 to 1.1.15
@@ -1733,9 +1733,10 @@ "use strict"; | ||
if (typeof handle === "function" || handle instanceof Blob) return; | ||
if (typeof handle === "string" && setHeaders["content-type"] === void 0) | ||
setHeaders["content-type"] = "text/plain;charset=utf-8"; | ||
const response = mapResponse(handle, { | ||
headers: setHeaders | ||
}); | ||
if (hooks.parse.length === 0 && hooks.transform.length === 0 && hooks.beforeHandle.length === 0 && hooks.afterHandle.length === 0) | ||
if (hooks.parse.length === 0 && hooks.transform.length === 0 && hooks.beforeHandle.length === 0 && hooks.afterHandle.length === 0) { | ||
if (!response.headers.has("content-type")) | ||
response.headers.append("content-type", "text/plain;charset=utf-8"); | ||
return response.clone.bind(response); | ||
} | ||
}; | ||
@@ -1742,0 +1743,0 @@ // Annotate the CommonJS export names for ESM import in node: |
{ | ||
"name": "elysia", | ||
"description": "Ergonomic Framework for Human", | ||
"version": "1.1.14", | ||
"version": "1.1.15", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "saltyAom", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56130
2631697