godprotocol 2.2.92 → 2.2.93

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godprotocol",
3
- "version": "2.2.92",
3
+ "version": "2.2.93",
4
4
  "description": "A distributed computing environment for Web 4.0 — integrating AI, decentralisation, and virtual computation.",
5
5
  "main": "Index.js",
6
6
  "type": "module",
@@ -116,9 +116,9 @@ const version_middleware = async (req, res, routers) => {
116
116
  version = req.headers["x-api-version"] || "v1";
117
117
  }
118
118
 
119
- if (headers["x-platform"])
120
- headers["x-platform"] = routers.gp.uri_default_domain(
121
- headers["x-platform"],
119
+ if (req.headers["x-platform"])
120
+ req.headers["x-platform"] = routers.gp.uri_default_domain(
121
+ req.headers["x-platform"],
122
122
  );
123
123
 
124
124
  const versionRouter = await routers.get_version(version);