lib/lanyrd/client.rb in lanyrd-1.1.0 vs lib/lanyrd/client.rb in lanyrd-1.1.1
- old
+ new
@@ -41,13 +41,15 @@
def get(path)
response = connection.get(path).body
end
def connection
- Faraday.new 'http://lanyrd.com/mobile/ios2/' do |conn|
+ conn = Faraday.new 'http://lanyrd.com/mobile/ios2/' do |conn|
conn.response :json
conn.use FaradayMiddleware::Mashify
conn.adapter Faraday.default_adapter
end
+ conn.headers['X-Lanyrd-Auth'] = Time.now.hash.to_s
+ conn
end
end
end
\ No newline at end of file