godprotocol 2.2.87 → 2.2.89
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
|
@@ -174,10 +174,16 @@ class Headers extends Services {
|
|
|
174
174
|
headers["authorization"] = `Bearer ${authorization}`;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
+
// Light patch for emulator support
|
|
178
|
+
let hst = request.headers.host;
|
|
179
|
+
if (hst.startsWith("10.0.2.2")) {
|
|
180
|
+
hst = hst.replace("10.0.2.2", "localhost");
|
|
181
|
+
}
|
|
182
|
+
|
|
177
183
|
let third_party =
|
|
178
|
-
xplatform !== this.platform_uri &&
|
|
179
|
-
|
|
180
|
-
if (gp_services.profile.endsWith(
|
|
184
|
+
xplatform !== this.platform_uri && !gp_services.profile.endsWith(hst);
|
|
185
|
+
|
|
186
|
+
if (gp_services.profile.endsWith(hst)) {
|
|
181
187
|
headers["x-platform"] = xplatform;
|
|
182
188
|
}
|
|
183
189
|
|