From c56e6164e9f2a5ec33f9e8b47aa23e263deec59a Mon Sep 17 00:00:00 2001 From: Egor Pavlov Date: Fri, 10 Jan 2020 21:06:18 +0300 Subject: [PATCH] doc: fix example of parsing request.url Fixes: https://github.com/nodejs/node/issues/31301 --- doc/api/http.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/http.md b/doc/api/http.md index 3ca76cc92a598c..14b900ac55f035 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1990,7 +1990,7 @@ When `request.url` is `'/status?name=ryan'` and ```console $ node -> new URL(request.url, request.headers.host) +> new URL(request.url, `http://${request.headers.host}`) URL { href: 'http://localhost:3000/status?name=ryan', origin: 'http://localhost:3000',