Class: CMIS::Connection::RequestModifier

Inherits:
Faraday::Middleware
  • Object
show all
Defined in:
lib/cmis/connection/request_modifier.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object


7
8
9
10
11
12
13
14
# File 'lib/cmis/connection/request_modifier.rb', line 7

def call(env)
  if env[:body]
    env[:body].reject! { |_, v| v.nil? }
    wrap_content(env)
    massage_properties(env)
  end
  @app.call(env)
end