update test

This commit is contained in:
Sergey Zhemoytel 2025-01-08 14:45:29 +03:00
parent 08e38101d2
commit d4593f0175

View file

@ -45,6 +45,7 @@ func NewMockServer() *MockServer {
return
}
if contentType := r.Header.Get("Content-Type"); !strings.Contains(contentType, "multipart/form-data") {
log.Printf("Invalid Content-Type: %s", contentType)
w.WriteHeader(http.StatusBadRequest)
return
}