Update Url (#864)
This commit is contained in:
parent
b121feb8f5
commit
d351058cae
|
@ -126,6 +126,6 @@ Since v3.x you no longer need to install `@types/node-fetch` package in order to
|
|||
[cross-fetch]: https://github.com/lquixada/cross-fetch
|
||||
[fetch-charset-detection]: https://github.com/Richienb/fetch-charset-detection
|
||||
[fetch-charset-detection-docs]: https://richienb.github.io/fetch-charset-detection/globals.html#convertbody
|
||||
[fetch-blob]: https://github.com/bitinn/fetch-blob#readme
|
||||
[fetch-blob]: https://github.com/node-fetch/fetch-blob#readme
|
||||
[whatwg-nodejs-url]: https://nodejs.org/api/url.html#url_the_whatwg_url_api
|
||||
[changelog]: CHANGELOG.md
|
||||
|
|
|
@ -39,7 +39,7 @@ export default class Request extends Body {
|
|||
constructor(input, init = {}) {
|
||||
let parsedURL;
|
||||
|
||||
// Normalize input and force URL to be encoded as UTF-8 (https://github.com/bitinn/node-fetch/issues/245)
|
||||
// Normalize input and force URL to be encoded as UTF-8 (https://github.com/node-fetch/node-fetch/issues/245)
|
||||
if (isRequest(input)) {
|
||||
parsedURL = new URL(input.url);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue