Skip to content

Commit

Permalink
feat(client): 🐛 add http header (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viserion77 authored Jun 14, 2023
1 parent da29890 commit c680422
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@

# rspec failure tracking
.rspec_status

nubank_sdk-*.gem
1 change: 1 addition & 0 deletions lib/nubank_sdk/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def initialize(base_url, connection_adapter = nil)
def post(path, body)
@connection.post(path) do |req|
req.headers['Content-Type'] = 'application/json'
req.headers['X-Correlation-Id'] = 'WEB-APP.pewW9'
req.body = body.to_json
end
end
Expand Down

0 comments on commit c680422

Please sign in to comment.