From b2c9c24b01c7aed84b5f77bb92a17f0b1a729fd7 Mon Sep 17 00:00:00 2001 From: Karrot Date: Mon, 16 Dec 2024 20:34:55 +0900 Subject: [PATCH] fix: Remove response body check in POST --- lib/trino/client/statement_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/trino/client/statement_client.rb b/lib/trino/client/statement_client.rb index 699a9540..2ba4ab41 100644 --- a/lib/trino/client/statement_client.rb +++ b/lib/trino/client/statement_client.rb @@ -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