backend-manager 4.0.25 → 4.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -47,7 +47,9 @@ function BackendAssistant() {
|
|
|
47
47
|
|
|
48
48
|
function tryUrl(req) {
|
|
49
49
|
try {
|
|
50
|
-
|
|
50
|
+
// return `${req.protocol}://${req.get('host')}${req.originalUrl}`
|
|
51
|
+
// Like this becuse "req.originalUrl" does NOT have path for all cases (like when calling https://us-central1-{id}.cloudfunctions.net/giftImport)
|
|
52
|
+
return `${req.protocol}://${req.get('host')}`
|
|
51
53
|
} catch {
|
|
52
54
|
return '';
|
|
53
55
|
}
|