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
+4 -4
View File
@@ -11,7 +11,7 @@ import (
)
func HandleAttachmentFileUpload(response http.ResponseWriter, request *http.Request) {
if !postValidCheckWithResponseOnFail(&response, request, postFile) {
if !validCheckWithResponseOnFail(&response, request, postFile) {
return
}
ctx := request.Context()
@@ -61,7 +61,7 @@ func HandleAttachmentFileUpload(response http.ResponseWriter, request *http.Requ
}
func HandleGetUserAvatar(response http.ResponseWriter, request *http.Request) {
if !postValidCheckWithResponseOnFail(&response, request, postNormal) {
if !validCheckWithResponseOnFail(&response, request, postNormal) {
return
}
ctx := request.Context()
@@ -100,7 +100,7 @@ func HandleGetUserAvatar(response http.ResponseWriter, request *http.Request) {
}
func HandleGetUserProfileBg(response http.ResponseWriter, request *http.Request) {
if !postValidCheckWithResponseOnFail(&response, request, postNormal) {
if !validCheckWithResponseOnFail(&response, request, postNormal) {
return
}
ctx := request.Context()
@@ -138,7 +138,7 @@ func HandleGetUserProfileBg(response http.ResponseWriter, request *http.Request)
}
func HandleAttachmentFileDownload(response http.ResponseWriter, request *http.Request) {
if !postValidCheckWithResponseOnFail(&response, request, postNormal) {
if !validCheckWithResponseOnFail(&response, request, postNormal) {
return
}
ctx := request.Context()