From a4ca5ee46f8e1008776c68cf7fa8ce44fe00f33f Mon Sep 17 00:00:00 2001 From: MoonsvnLyn <287222957+FirmaSpring@users.noreply.github.com> Date: Mon, 17 Aug 2026 17:58:24 +0800 Subject: [PATCH] docs: point request.hostname URL link at current Node.js docs The link targeted the Node 8 docs snapshot (nodejs.org/dist/latest-v8.x/...), but Koa requires node >= 18 per package.json engines, and Node 8 is EOL. Link the WHATWG URL API section of the current docs instead. Co-authored-by: FirmamentalSpring <287222957+FirmaSpring@users.noreply.github.com> --- docs/api/request.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/request.md b/docs/api/request.md index 121417cff..660c363f3 100644 --- a/docs/api/request.md +++ b/docs/api/request.md @@ -101,7 +101,7 @@ ctx.request.href; when `app.proxy` is __true__, otherwise `Host` is used. If host is IPv6, Koa delegates parsing to - [WHATWG URL API](https://nodejs.org/dist/latest-v8.x/docs/api/url.html#url_the_whatwg_url_api), + [WHATWG URL API](https://nodejs.org/api/url.html#the-whatwg-url-api), *Note* This may impact performance. ### request.URL