Skip to content

Commit

Permalink
Merge pull request #115 from PlaceOS/ensure-response-downloaded
Browse files Browse the repository at this point in the history
fix(core client): ensure body has completely downloaded
  • Loading branch information
stakach authored Jul 20, 2021
2 parents b6a40ac + 7a75816 commit 815d4eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: placeos-core
version: 3.10.4
version: 3.10.5
crystal: ~> 1.0

targets:
Expand Down
1 change: 1 addition & 0 deletions src/placeos-core/client.cr
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ module PlaceOS::Core
Retriable.retry times: retries, max_interval: 1.minute, on_retry: rewind_io do
connection_lock.synchronize do
connection.{{method.id}}(path, headers, body) do |response|
response.consume_body_io
if response.success? || !raises
yield response
else
Expand Down

0 comments on commit 815d4eb

Please sign in to comment.