mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-27 00:36:49 +09:00
Use library const for HTTP verbs
This commit is contained in:
1 parent
68305df9b2
commit
f4d197485c
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -174,7 +174,7 @@ func (h *Headscale) DERPProbeHandler(
|
||||
req *http.Request,
|
||||
) {
|
||||
switch req.Method {
|
||||
case "HEAD", "GET":
|
||||
case http.MethodHead, http.MethodGet:
|
||||
writer.Header().Set("Access-Control-Allow-Origin", "*")
|
||||
writer.WriteHeader(http.StatusOK)
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user