Sha256: cde5700dc068e49f9a91aea1f1b6a2e6375ea97f8413ad1bd3dc98e29d777c40

Contents?: true

Size: 272 Bytes

Versions: 5

Compression:

Stored size: 272 Bytes

Contents

# frozen_string_literal: true

module Grape
  module Util
    if Gem::Version.new(Rack.release) >= Gem::Version.new('3')
      require 'rack/headers'
      Header = Rack::Headers
    else
      require 'rack/utils'
      Header = Rack::Utils::HeaderHash
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grape-2.2.0 lib/grape/util/header.rb
grape-2.1.3 lib/grape/util/header.rb
grape-2.1.2 lib/grape/util/header.rb
grape-2.1.1 lib/grape/util/header.rb
grape-2.1.0 lib/grape/util/header.rb