mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +00:00
fix
This commit is contained in:
parent
a80185f82e
commit
2763718e78
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ func Handler(mainDomainSuffix, rawDomain string,
|
||||||
|
|
||||||
ctx.RespWriter.Header().Set("Allow", http.MethodGet+", "+http.MethodHead+", "+http.MethodOptions) // duplic 1
|
ctx.RespWriter.Header().Set("Allow", http.MethodGet+", "+http.MethodHead+", "+http.MethodOptions) // duplic 1
|
||||||
if ctx.IsMethod(http.MethodOptions) {
|
if ctx.IsMethod(http.MethodOptions) {
|
||||||
ctx.Response().StatusCode = http.StatusNoContent
|
ctx.RespWriter.WriteHeader(http.StatusNoContent)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue