From 2763718e788e99f87b5aef45e2c33d6eed30eccd Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Fri, 11 Nov 2022 06:31:01 +0100 Subject: [PATCH] fix --- server/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/handler.go b/server/handler.go index e36dbb4..460875c 100644 --- a/server/handler.go +++ b/server/handler.go @@ -80,7 +80,7 @@ func Handler(mainDomainSuffix, rawDomain string, ctx.RespWriter.Header().Set("Allow", http.MethodGet+", "+http.MethodHead+", "+http.MethodOptions) // duplic 1 if ctx.IsMethod(http.MethodOptions) { - ctx.Response().StatusCode = http.StatusNoContent + ctx.RespWriter.WriteHeader(http.StatusNoContent) return }