Skip to content

Commit

Permalink
Merge pull request #114 from jschniper/master
Browse files Browse the repository at this point in the history
Read the body on all requests to ensure that the socket is closed
  • Loading branch information
edgurgel committed Jan 13, 2016
2 parents 536e3dd + 8d6d0a5 commit c2217c4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/httpoison/base.ex
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,6 @@ defmodule HTTPoison.Base do

case :hackney.request(method, request_url, request_headers,
request_body, hn_options) do
{:ok, status_code, headers, _client} when status_code in [204, 304] ->
response(process_status_code, process_headers, process_response_body, status_code, headers, "")
{:ok, status_code, headers} -> response(process_status_code, process_headers, process_response_body, status_code, headers, "")
{:ok, status_code, headers, client} ->
case :hackney.body(client) do
Expand Down

0 comments on commit c2217c4

Please sign in to comment.