remove forced POST in request
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user