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
+1 -6
View File
@@ -17,12 +17,7 @@ const (
postProfileBg
)
func postValidCheckWithResponseOnFail(response *http.ResponseWriter, request *http.Request, pt postType) bool {
if request.Method != http.MethodPost {
http.Error(*response, "POST only", http.StatusMethodNotAllowed)
return false
}
func validCheckWithResponseOnFail(response *http.ResponseWriter, request *http.Request, pt postType) bool {
var maxSize int64
switch pt {
case postFile: