From 50976280fcb19ce556ddc46f76da1f5fab46fa4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=BD=E5=A6=82=E5=AF=84?= <594613537@qq.com> Date: Thu, 13 Aug 2020 01:12:19 -0500 Subject: [PATCH] docs: update compress url (#4415) --- docs/source/en/intro/egg-and-koa.md | 2 +- docs/source/zh-cn/intro/egg-and-koa.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/en/intro/egg-and-koa.md b/docs/source/en/intro/egg-and-koa.md index 1fb92d14cd..5a306ff197 100644 --- a/docs/source/en/intro/egg-and-koa.md +++ b/docs/source/en/intro/egg-and-koa.md @@ -43,7 +43,7 @@ The middleware in Koa is different from Express, Koa use the onion model: All the requests will be executed twice during one middleware. Compared to Express middleware, it is very easy to implement post-processing logic. You can obviously feel the advantage of Koa middleware model by comparing the compress middleware implementing in Koa and Express. -- [koa-compress](https://github.com/koajs/compress/blob/master/index.js) for Koa. +- [koa-compress](https://github.com/koajs/compress/blob/master/lib/index.js) for Koa. - [compression](https://github.com/expressjs/compression/blob/master/index.js) for Express. ### Context diff --git a/docs/source/zh-cn/intro/egg-and-koa.md b/docs/source/zh-cn/intro/egg-and-koa.md index 24afab0c37..ae8a6fb76c 100644 --- a/docs/source/zh-cn/intro/egg-and-koa.md +++ b/docs/source/zh-cn/intro/egg-and-koa.md @@ -43,7 +43,7 @@ Koa 的中间件和 Express 不同,Koa 选择了洋葱圈模型。 所有的请求经过一个中间件的时候都会执行两次,对比 Express 形式的中间件,Koa 的模型可以非常方便的实现后置处理逻辑,对比 Koa 和 Express 的 Compress 中间件就可以明显的感受到 Koa 中间件模型的优势。 -- [koa-compress](https://github.com/koajs/compress/blob/master/index.js) for Koa. +- [koa-compress](https://github.com/koajs/compress/blob/master/lib/index.js) for Koa. - [compression](https://github.com/expressjs/compression/blob/master/index.js) for Express. ### Context