hono 3.10.3 → 3.10.4

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.
@@ -140,9 +140,7 @@ class Context {
140
140
  }
141
141
  this._pH = {};
142
142
  }
143
- if (this._pH["content-type"]) {
144
- this._pH["content-type"] = TEXT_PLAIN;
145
- }
143
+ this._pH["content-type"] = TEXT_PLAIN;
146
144
  return typeof arg === "number" ? this.newResponse(text, arg, headers) : this.newResponse(text, arg);
147
145
  };
148
146
  this.json = (object, arg, headers) => {
package/dist/context.js CHANGED
@@ -118,9 +118,7 @@ var Context = class {
118
118
  }
119
119
  this._pH = {};
120
120
  }
121
- if (this._pH["content-type"]) {
122
- this._pH["content-type"] = TEXT_PLAIN;
123
- }
121
+ this._pH["content-type"] = TEXT_PLAIN;
124
122
  return typeof arg === "number" ? this.newResponse(text, arg, headers) : this.newResponse(text, arg);
125
123
  };
126
124
  this.json = (object, arg, headers) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono",
3
- "version": "3.10.3",
3
+ "version": "3.10.4",
4
4
  "description": "Ultrafast web framework for the Edges",
5
5
  "main": "dist/cjs/index.js",
6
6
  "type": "module",