lib/deadlinez/api.rb in deadlinez-0.1.0 vs lib/deadlinez/api.rb in deadlinez-0.1.1

- old
+ new

@@ -8,10 +8,15 @@ # plugin. def self.proxy(path, params) proxy_params = Deadlinez::Proxy.strip_params(params) response = post(path, :body => proxy_params, - :format => nil) + :format => nil, + :headers => { + 'Host' => 'service.afterthedeadline.com', + 'Content-Type' => 'application/x-www-form-urlencoded', + 'User-Agent' => 'AtD/0.1' + }) response.body end def self.stats(data) response = post('/stats',