diff options
| -rw-r--r-- | lib/hcl/harvest_middleware.rb | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/lib/hcl/harvest_middleware.rb b/lib/hcl/harvest_middleware.rb index edf3b01..adb9427 100644 --- a/lib/hcl/harvest_middleware.rb +++ b/lib/hcl/harvest_middleware.rb @@ -15,14 +15,14 @@ class HCl::HarvestMiddleware < Faraday::Middleware    end    def call(env) -    #  basic authentication -    @auth.call(env) -      # encode with and accept json      env[:request_headers]['Accept'] = MIME_TYPE      env[:request_headers]['Content-Type'] = MIME_TYPE      env[:body] = Yajl::Encoder.encode(env[:body]) +    #  basic authentication +    @auth.call(env) +      # response processing      @app.call(env).on_complete do |env|        case env[:status] | 
