Skip to content

Commit a56cfed

Browse files
authored
Use HTTPS (#20)
1 parent bc7251b commit a56cfed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@deco/mcp",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"exports": {
55
".": "./mod.ts",
66
"./http": "./mcp/http.ts"

mcp/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ export function mcpServer<TManifest extends AppManifest>(
342342

343343
if (isHTMLRequest) {
344344
// Return HTML page for browser requests
345-
const currentUrl = c.req.url;
345+
const currentUrl = c.req.url.replace(/^http:/, 'https:');
346346

347347
// Get tools data directly
348348
const meta = await deco.meta().then((v) => v?.value);

0 commit comments

Comments
 (0)