summaryrefslogtreecommitdiff
path: root/src/plop.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/plop.erl')
-rw-r--r--src/plop.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plop.erl b/src/plop.erl
index 780dcbe..3b54a89 100644
--- a/src/plop.erl
+++ b/src/plop.erl
@@ -209,6 +209,7 @@ send_http_request(TreeLeafHash, URL, Headers, RequestBody) ->
lager:debug("leafhash ~s: received headers for ~p", [mochihex:to_hex(TreeLeafHash), URL]),
{ok, Body} = hackney:body(ClientRef),
Stoptime = os:timestamp(),
+ hackney:close(ClientRef),
lager:debug("leafhash ~s: received body for ~p: time ~p", [mochihex:to_hex(TreeLeafHash), URL, timer:now_diff(Stoptime, Starttime)]),
StatusLine = {none, StatusCode, none},
ParentPid ! {http, {RequestId, {StatusLine, RespHeaders, Body}}}