epistery 1.5.4 → 1.5.5
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/index.mjs +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -75,7 +75,7 @@ class EpisteryAttach {
|
|
|
75
75
|
// which is required for internal proxies (MCP loopback fetch).
|
|
76
76
|
// Falls back to raw Host header for non-proxied requests.
|
|
77
77
|
const hostname = req.hostname || req.headers.host?.split(":")[0] || "localhost";
|
|
78
|
-
if (req.app.locals.epistery.
|
|
78
|
+
if (req.app.locals.epistery.domainName !== hostname) {
|
|
79
79
|
await req.app.locals.epistery.setDomain(hostname);
|
|
80
80
|
}
|
|
81
81
|
next();
|
package/package.json
CHANGED