aboutsummaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2022-11-27 16:05:13 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2022-11-27 16:05:13 +0000
commit10843b7318e949fcd3120d843352271ef198be11 (patch)
tree41bad32a1b8cf32ac9016864e65532d87ea10cdd /http.go
parent98ddf347d3c2430a4c354621ee746c8252257bda (diff)
Fix typo in header namev0.2.1
Diffstat (limited to 'http.go')
-rw-r--r--http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.go b/http.go
index 83a6830..8b57133 100644
--- a/http.go
+++ b/http.go
@@ -41,7 +41,7 @@ func FilterHTTPMethod(methods ...string) HTTPFilterFunc {
return false
}
}
- w.Header().Set("Allowed", allowed)
+ w.Header().Set("Allow", allowed)
w.WriteHeader(http.StatusMethodNotAllowed)
return true
}