mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-25 10:40:02 +08:00
Prior to this patch, the request body could leak if an error ocurred in `io.ReadAll()`. Moves the deferred `Close()` call to before the `ReadAll()` call to ensure the body is closed.