mirror of
https://tvoygit.ru/Djam/abfapi.git
synced 2025-02-23 10:22:45 +00:00
update test
This commit is contained in:
parent
08e38101d2
commit
d4593f0175
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue