From 8884c2d6c2da638c2bcb0fb2563b8384087ad5c8 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Tue, 16 Jan 2024 11:22:33 -0500 Subject: [PATCH] bugfix --- static/functions/_middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/functions/_middleware.js b/static/functions/_middleware.js index 3573a99..90efe51 100644 --- a/static/functions/_middleware.js +++ b/static/functions/_middleware.js @@ -4,7 +4,7 @@ async function handle_keys_request(context) { // If the domain is `keys.ewpratten.com`, redirect to `ewpratten.com/keys/...` if (url.hostname == 'keys.ewpratten.com') { - url.domain = 'ewpratten.com'; + url.hostname = 'ewpratten.com'; // If there was no path set, return the SSH keys if (url.pathname == '/') {