doc: fix typo in url.md
PR-URL: https://github.com/nodejs/node/pull/39666 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
parent
712059a232
commit
8bfb4b9815
@ -1169,7 +1169,7 @@ expected by the [`http.request()`][] and [`https.request()`][] APIs.
|
||||
import { urlToHttpOptions } from 'url';
|
||||
const myURL = new URL('https://a:b@測試?abc#foo');
|
||||
|
||||
console.log(urlToHttpOptions(myUrl));
|
||||
console.log(urlToHttpOptions(myURL));
|
||||
/**
|
||||
{
|
||||
protocol: 'https:',
|
||||
|
Loading…
x
Reference in New Issue
Block a user