1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-14 13:46:23 +00:00

Update application.go

This commit is contained in:
Fenny 2020-03-24 03:43:13 +01:00
parent b4d9ba33ac
commit b52d702616

View File

@ -411,7 +411,7 @@ func (app *App) Test(request *http.Request, msTimeout ...int) (*http.Response, e
}
case <-time.After(time.Duration(timeout) * time.Millisecond):
return nil, fmt.Errorf("Timeout error")
}
// Read response
buffer := bufio.NewReader(&conn.w)
// Convert raw http response to *http.Response