lib/timber/log_devices/http.rb in timber-1.0.9 vs lib/timber/log_devices/http.rb in timber-1.0.10
- old
+ new
@@ -162,9 +162,10 @@
msgs.each do |msg|
body << msg
end
req = Net::HTTP::Post.new(@timber_url.path)
+ req['Accept'] = "application/json"
req['Authorization'] = authorization_payload
req['Content-Type'] = CONTENT_TYPE
req['User-Agent'] = USER_AGENT
req.body = body
@request_queue.enq(req)
\ No newline at end of file