add paritional files uploading for minIO
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func requestValidCheck(response *http.ResponseWriter, request *http.Request) bool {
|
||||
func postValidCheckWithResponseOnFail(response *http.ResponseWriter, request *http.Request) bool {
|
||||
if request.Method != http.MethodPost {
|
||||
http.Error(*response, "POST only", http.StatusMethodNotAllowed)
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user