This commit is contained in:
root
2021-07-16 13:55:15 +00:00
parent 62f6a71e75
commit b3e561f902

View File

@@ -93,7 +93,7 @@ func TestUtilGetJSONPost(t *testing.T) {
}
func TestUtilSMS(t *testing.T) {
server := httptest.NewServer(logRequest(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
server := httptest.NewServer(reqMiddleware(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
rw.Header().Set("Content-Type", "application/json")
rw.WriteHeader(200)
defer req.Body.Close()