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
47d4671626
commit
fbea5c78b4
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ func NewMockServer() *MockServer {
|
|||
"file_name": "testfile.txt",
|
||||
}
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
json.NewEncoder(w).Write([]interface{}{response})
|
||||
json.NewEncoder(w).Encode([]interface{}{response}) // Исправлено с Write на Encode
|
||||
} else {
|
||||
w.WriteHeader(http.StatusNotFound)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue