mirror of https://github.com/gofiber/fiber.git
parent
1dea615ddf
commit
35797e6639
|
@ -643,7 +643,7 @@ resp, _ := app.Test(req)
|
|||
|
||||
// Do something with results:
|
||||
if resp.StatusCode == fiber.StatusOK {
|
||||
body, _ := ioutil.ReadAll(resp.Body)
|
||||
body, _ := io.ReadAll(resp.Body)
|
||||
fmt.Println(string(body)) // => Hello, World!
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue