Skip to content

Commit

Permalink
add query string for GET requests
Browse files Browse the repository at this point in the history
  • Loading branch information
nulldef authored and trusche committed Sep 17, 2022
1 parent 1be99c9 commit 5969c3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/httplog/adapters/ethon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5969c3f

Please sign in to comment.