lib/bjond-api.rb in bjond-api-0.3.6 vs lib/bjond-api.rb in bjond-api-0.3.9

- old
+ new

@@ -30,9 +30,10 @@ services = BjondService.where(:bjond_registration_id => bjond_registration.id) connections = [] services.each do |bjond_svc| url = bjond_svc.endpoint + "/#{event_id}" puts "Creating connection to " + url + puts BjondJwt::jwt_encode_payload(payload, bjond_registration) conn = Faraday.new(:url => url) conn.post do |req| req.headers['Content-Type'] = 'application/json' req.body = BjondJwt::jwt_encode_payload(payload, bjond_registration) end