koa 2.13.3 → 2.13.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.
package/History.md CHANGED
@@ -1,4 +1,10 @@
1
1
 
2
+ 2.13.4 / 2021-10-19
3
+ ==================
4
+
5
+ **fixes**
6
+ * [[`dbc9c5a`](http://github.com/koajs/koa/commit/dbc9c5a47e2b2799cab403186fdb010df5df6f67)] - fix: Do not response Content-Length if Transfer-Encoding is defined (#1602) (Yiyu He <<dead_horse@qq.com>>)
7
+
2
8
  2.13.3 / 2021-09-24
3
9
  ==================
4
10
 
package/lib/response.js CHANGED
@@ -191,7 +191,9 @@ module.exports = {
191
191
  */
192
192
 
193
193
  set length(n) {
194
- this.set('Content-Length', n);
194
+ if (!this.has('Transfer-Encoding')) {
195
+ this.set('Content-Length', n);
196
+ }
195
197
  },
196
198
 
197
199
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koa",
3
- "version": "2.13.3",
3
+ "version": "2.13.4",
4
4
  "description": "Koa web app framework",
5
5
  "main": "lib/application.js",
6
6
  "exports": {