hono 2.7.4 → 2.7.5

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.
@@ -122,6 +122,7 @@ class Context {
122
122
  }
123
123
  set res(_res) {
124
124
  if (this._res) {
125
+ this._res.headers.delete("content-type");
125
126
  this._res.headers.forEach((v, k) => {
126
127
  _res.headers.set(k, v);
127
128
  });
package/dist/context.js CHANGED
@@ -100,6 +100,7 @@ var Context = class {
100
100
  }
101
101
  set res(_res) {
102
102
  if (this._res) {
103
+ this._res.headers.delete("content-type");
103
104
  this._res.headers.forEach((v, k) => {
104
105
  _res.headers.set(k, v);
105
106
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono",
3
- "version": "2.7.4",
3
+ "version": "2.7.5",
4
4
  "description": "Ultrafast web framework for Cloudflare Workers, Deno, and Bun.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "type": "module",