fix: invalid character in header on Windows
Summary:
Fixes https://github.com/react-native-community/cli/issues/2279 Fixes https://github.com/react-native-community/cli/issues/2449
Some paths to current working directory contains characters that are invalid for header inside the request specifically on Windows - by wrapping path inside URL() class we're sure that characters are correctly coded.
Checklist
- [x] Documentation is up to date to reflect these changes.
- [x] Follows commit message convention described in CONTRIBUTING.md
There hasn't been any activity on this pull request in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.
cc @huntie can you take a look if this one doesn't introduce any regressions?
There hasn't been any activity on this pull request in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.
@szymonrybczak I don't really have a Windows machine to hand, please validate on your end.
There hasn't been any activity on this pull request in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.