Skip to content

Commit

Permalink
Fix uuid generator (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-perekhrest authored Aug 2, 2024
1 parent 4fd0c73 commit cd5b348
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions exact_target_sdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,5 @@ Gem::Specification.new do |s|
s.add_dependency 'activemodel', '>= 3.0'
s.add_dependency 'activesupport', '>= 3.0'
s.add_dependency 'furi'
s.add_dependency 'guid', '~> 0.1'
s.add_dependency 'savon', '~> 2.4'

end
2 changes: 1 addition & 1 deletion lib/exact_target_sdk/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def execute_request(method)

xml.s :Header do
xml.a :Action, method, "s:mustUnderstand" => "1"
xml.a :MessageID, "uuid:#{Guid.new.to_s}"
xml.a :MessageID, "uuid:#{SecureRandom.uuid}"
xml.a :ReplyTo do
xml.a :Address, "http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"
end
Expand Down

0 comments on commit cd5b348

Please sign in to comment.