Method: Rack::PactBroker::ConvertFileExtensionToAcceptHeader#call

Defined in:
lib/rack/pact_broker/convert_file_extension_to_accept_header.rb

#call(env) ⇒ Object



17
18
19
20
21
22
23
24
# File 'lib/rack/pact_broker/convert_file_extension_to_accept_header.rb', line 17

def call env
  file_extension = extension(env)
  if convert_to_accept_header? file_extension
    @app.call(set_accept_header_and_path_info(env, file_extension))
  else
    @app.call(env)
  end
end