Open barnese3 opened 5 years ago
Query strings are being ignored in requests.
Example: requests like blah.com/path?stuff are getting sent to backends as just /path
blah.com/path?stuff
/path
Found with the following code while creating middleware/device-router:
middleware/device-router
if (deviceType === "mobile" && osName === "Android") { const backend = origin({ origin: `https://play.google.com/store/apps/details?id=${options.android}`, headers: {host: "play.google.com"} }); return backend(req); }
origin is only being seen as https://play.google.com/store/apps/details rather than https://play.google.com/store/apps/details?id=${options.android}
origin
https://play.google.com/store/apps/details
https://play.google.com/store/apps/details?id=${options.android}
Query strings are being ignored in requests.
Example: requests like
blah.com/path?stuff
are getting sent to backends as just/path
Found with the following code while creating
middleware/device-router
:origin
is only being seen ashttps://play.google.com/store/apps/details
rather thanhttps://play.google.com/store/apps/details?id=${options.android}