lib/minitel/client.rb in minitel-0.1.0 vs lib/minitel/client.rb in minitel-0.1.1
- old
+ new
@@ -7,10 +7,14 @@
def initialize(telex_url)
unless telex_url.start_with? "https://"
raise ArgumentError, "Bad Url"
end
- self.connection = Excon.new(telex_url)
+ self.connection = Excon.new(telex_url,
+ :headers => {
+ "User-Agent" => "minitel/#{Minitel::VERSION} excon/#{Excon::VERSION}"
+ }
+ )
end
def notify_app(args)
keywords = [:app_uuid, :body, :title]
app_uuid, body, title = args[:app_uuid], args[:body], args[:title]