Skip to content

Commit

Permalink
Fix fetching body on request (Rails 7.2) (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
KapustaB authored Sep 30, 2024
1 parent 9909d90 commit f6215a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/treblle/request_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def header_to_include?(header)
end

def get_body(request_metadata)
return if request_metadata.body.nil?

case request_metadata.media_type
when 'application/x-www-form-urlencoded', 'multipart/form-data'
request_metadata.POST.dup
Expand Down

0 comments on commit f6215a8

Please sign in to comment.