remove forced POST in request

This commit is contained in:
2026-04-20 20:44:39 +02:00
parent 37ec877baf
commit 35a6d2dc25
4 changed files with 19 additions and 24 deletions
+7 -7
View File
@@ -21,7 +21,7 @@ import (
)
func HandleDm(response http.ResponseWriter, request *http.Request) {
if !postValidCheckWithResponseOnFail(&response, request, postNormal) {
if !validCheckWithResponseOnFail(&response, request, postNormal) {
return
}
@@ -89,7 +89,7 @@ func HandleDm(response http.ResponseWriter, request *http.Request) {
}
func HandleUserGetConnectionMessages(response http.ResponseWriter, request *http.Request) {
if !postValidCheckWithResponseOnFail(&response, request, postNormal) {
if !validCheckWithResponseOnFail(&response, request, postNormal) {
return
}
ctx := request.Context()
@@ -158,7 +158,7 @@ func HandleUserGetConnectionMessages(response http.ResponseWriter, request *http
}
func HandleUserNewConnection(response http.ResponseWriter, request *http.Request) {
if !postValidCheckWithResponseOnFail(&response, request, postNormal) {
if !validCheckWithResponseOnFail(&response, request, postNormal) {
return
}
ctx := request.Context()
@@ -217,7 +217,7 @@ func HandleUserNewConnection(response http.ResponseWriter, request *http.Request
}
func HandleUserDeleteConnection(response http.ResponseWriter, request *http.Request) {
if !postValidCheckWithResponseOnFail(&response, request, postNormal) {
if !validCheckWithResponseOnFail(&response, request, postNormal) {
return
}
ctx := request.Context()
@@ -270,7 +270,7 @@ func HandleUserDeleteConnection(response http.ResponseWriter, request *http.Requ
}
func HandleUserElevateConnection(response http.ResponseWriter, request *http.Request) {
if !postValidCheckWithResponseOnFail(&response, request, postNormal) {
if !validCheckWithResponseOnFail(&response, request, postNormal) {
return
}
ctx := request.Context()
@@ -330,7 +330,7 @@ func HandleUserElevateConnection(response http.ResponseWriter, request *http.Req
}
func HandleUserDeElevateConnection(response http.ResponseWriter, request *http.Request) {
if !postValidCheckWithResponseOnFail(&response, request, postNormal) {
if !validCheckWithResponseOnFail(&response, request, postNormal) {
return
}
@@ -377,7 +377,7 @@ func HandleUserDeElevateConnection(response http.ResponseWriter, request *http.R
}
func HandleUserGetConnections(response http.ResponseWriter, request *http.Request) {
if !postValidCheckWithResponseOnFail(&response, request, postNormal) {
if !validCheckWithResponseOnFail(&response, request, postNormal) {
return
}
ctx := request.Context()