lib/omcms/middleware/set_header.rb in omcms-ruby-client-1.2.0 vs lib/omcms/middleware/set_header.rb in omcms-ruby-client-1.3.0

- old
+ new

@@ -1,12 +1,14 @@ +# frozen_string_literal: true + module OMCMS class SetHeader < Faraday::Middleware HEADERS = { "user-agent": "omcms/ruby/client/#{VERSION}" }.freeze def initialize(app) - super app + super(app) @app = app end def on_request(request_env) request_env[:request_headers].merge! HEADERS