From 5969c3febbd0f76cbfb3b53910846563488092da Mon Sep 17 00:00:00 2001 From: Alexey Bespalov Date: Fri, 16 Sep 2022 15:59:03 +0400 Subject: [PATCH] add query string for GET requests --- lib/httplog/adapters/ethon.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/httplog/adapters/ethon.rb b/lib/httplog/adapters/ethon.rb index fada010..3ee4248 100644 --- a/lib/httplog/adapters/ethon.rb +++ b/lib/httplog/adapters/ethon.rb @@ -22,9 +22,12 @@ def perform bm = Benchmark.realtime { orig_perform } + url = @http_log[:url] + url = "#{url}?#{@http_log[:params]}" if @http_log[:params] + HttpLog.call( method: @http_log[:method], - url: @http_log[:url], + url: url, request_body: @http_log[:body], request_headers: @http_log[:headers], response_code: @return_code,