Skip to content

Commit

Permalink
Add transId to header for each request
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmankyle committed Sep 17, 2024
1 parent 539e20b commit a834698
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ups/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ def get_response(path, body = {})

headers = {
'Content-Type' => 'application/json',
'Authorization' => "Bearer #{access_token}"
'Authorization' => "Bearer #{access_token}",
'transId' => SecureRandom.hex(16) # Unique identifier for this request
}

Excon.post(
Expand Down

0 comments on commit a834698

Please sign in to comment.