Method: Psc::Faraday::AcceptPscTypes#call
- Defined in:
- lib/psc/faraday/accept_psc_types.rb
#call(env) ⇒ Object
Sets the Accept header if appropriate
17 18 19 20 21 |
# File 'lib/psc/faraday/accept_psc_types.rb', line 17 def call(env) env[:request_headers]['Accept'] ||= DEFAULT_ACCEPT_HEADER @app.call(env) end |