mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-06 17:27:54 +08:00
decode pathName when extracting from url
This commit is contained in:
committed by
Christopher Chedeau
parent
f8b36491d7
commit
6b2c88feec
2
packager/react-packager/src/Server/index.js
vendored
2
packager/react-packager/src/Server/index.js
vendored
@@ -349,7 +349,7 @@ function getOptionsFromUrl(reqUrl) {
|
||||
// node v0.11.14 bug see https://github.com/facebook/react-native/issues/218
|
||||
urlObj.query = urlObj.query || {};
|
||||
|
||||
var pathname = urlObj.pathname;
|
||||
var pathname = decodeURIComponent(urlObj.pathname);
|
||||
|
||||
// Backwards compatibility. Options used to be as added as '.' to the
|
||||
// entry module name. We can safely remove these options.
|
||||
|
||||
Reference in New Issue
Block a user