Sha256: 372dc7778524b692829e9b8d989b553c86b74628faf132bfd2931a0e1a1c9ec4

Contents?: true

Size: 270 Bytes

Versions: 6

Compression:

Stored size: 270 Bytes

Contents

# frozen_string_literal: true

module BoletoSimples
  module Middleware
    class UserAgent < Faraday::Middleware
      def call(env)
        env[:request_headers]['User-Agent'] = BoletoSimples.configuration.user_agent
        @app.call(env)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
boletosimples-2.1.0 lib/boletosimples/middlewares/user_agent.rb
boletosimples-2.0.0 lib/boletosimples/middlewares/user_agent.rb
boletosimples-1.0.4 lib/boletosimples/middlewares/user_agent.rb
boletosimples-1.0.3 lib/boletosimples/middlewares/user_agent.rb
boletosimples-1.0.2 lib/boletosimples/middlewares/user_agent.rb
boletosimples-1.0.1 lib/boletosimples/middlewares/user_agent.rb