mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-25 05:37:31 +00:00
Use library const for HTTP verbs
This commit is contained in:
@@ -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