-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http-client: Avoid a space leak when storing original requests
`Network.HTTP.Client.Response.getResponse` stores the original request inside a `Response`, but attempts to override its request body with an empty one. This record update was lazy, and a reference to the original request body would persist, causing a space leak. Force the response to WHNF, and use bang patterns to force the Request and ultimately its body to WHNF too.
- Loading branch information
1 parent
6f742e8
commit dee2a38
Showing
3 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters