Skip to content

Commit

Permalink
fix: Remove response body check in POST
Browse files Browse the repository at this point in the history
  • Loading branch information
kar0t committed Dec 16, 2024
1 parent a2dc9e5 commit b2c9c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/trino/client/statement_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def post_query_request!
end

if response
if response.status == 200 && !response.body.to_s.empty?
if response.status == 200
@results_headers = response.headers
@results = decode_model(uri, parse_body(response), @models::QueryResults)
return
Expand Down

0 comments on commit b2c9c24

Please sign in to comment.