summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hero.mjs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hero.mjs b/src/hero.mjs
index 37858ab..ed3ecd2 100644
--- a/src/hero.mjs
+++ b/src/hero.mjs
@@ -57,6 +57,9 @@ export const validateUpgrade = (method, headers) => {
const version = parseInt(versionStr);
if (!isValidMethod(method)) {
+ /// Unreachable by default, unless one is constructing tables
+ /// manually. Otherwise `findHandler()` will return a 404
+ /// before the request gets here.
return {
isValid: false,
response: {