lib/rails_cloud_tasks/adapter.rb in rails-cloud-tasks-0.0.8 vs lib/rails_cloud_tasks/adapter.rb in rails-cloud-tasks-0.0.9.pre.rc

- old
+ new

@@ -35,10 +35,11 @@ def build_task(job, timestamp) { http_request: { http_method: :POST, url: url, - body: { job: job.serialize }.to_json.force_encoding('ASCII-8BIT') + body: { job: job.serialize }.to_json.force_encoding('ASCII-8BIT'), + headers: { 'Content-Type': 'application/json' } }.merge(auth), schedule_time: timestamp && Google::Protobuf::Timestamp.new.tap do |ts| ts.seconds = timestamp end }.compact