Skip to content

Commit

Permalink
rewind req body
Browse files Browse the repository at this point in the history
  • Loading branch information
tycooon committed May 2, 2024
1 parent a8cf81c commit f6ef8f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
umbrellio-utils (1.0.0)
umbrellio-utils (1.1.0)
memery (~> 1)

GEM
Expand Down
1 change: 1 addition & 0 deletions lib/umbrellio_utils/request_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def initialize(request, remove_xml_attributes: true)
end

memoize def body
request.body.rewind
request.body.read.dup.force_encoding("utf-8")
end

Expand Down
2 changes: 1 addition & 1 deletion lib/umbrellio_utils/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module UmbrellioUtils
VERSION = "1.0.0"
VERSION = "1.1.0"
end

0 comments on commit f6ef8f2

Please sign in to comment.