@webtypen/webframez-core 0.0.53 → 0.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,7 +62,7 @@ class Response {
62
62
  // Do nothing ... Store content in variable and use it later ...
63
63
  }
64
64
  else {
65
- if (typeof content === "object") {
65
+ if (typeof content === "object" && !Buffer.isBuffer(content)) {
66
66
  (_a = this.res) === null || _a === void 0 ? void 0 : _a.setHeader("Content-Type", "application/json");
67
67
  (_b = this.res) === null || _b === void 0 ? void 0 : _b.write(JSON.stringify(content));
68
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webtypen/webframez-core",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "description": "The core package of the typescript based webframez (web-framework) by webtypen.de",
5
5
  "homepage": "https://webtypen.de/",
6
6
  "license": "MIT",
@@ -72,7 +72,7 @@ export class Response {
72
72
  if (this.mode === "aws-lambda") {
73
73
  // Do nothing ... Store content in variable and use it later ...
74
74
  } else {
75
- if (typeof content === "object") {
75
+ if (typeof content === "object" && !Buffer.isBuffer(content)) {
76
76
  this.res?.setHeader("Content-Type", "application/json");
77
77
  this.res?.write(JSON.stringify(content));
78
78
  } else {