Sha256: 9b9152cd762e8548afe63ef60dd00d6fc9dd3040972ca22a9560412119bec705
Contents?: true
Size: 324 Bytes
Versions: 1
Compression:
Stored size: 324 Bytes
Contents
module Easee class AmazonGwMiddleware < Faraday::Middleware def on_complete(env) return unless env.response_headers["X-Amzn-Errortype"] == "ForbiddenException" response_values = Faraday::Response::RaiseError.new.response_values(env) raise(Faraday::ForbiddenError, response_values) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stekker_easee-1.0.2 | lib/easee/amazon_gw_middleware.rb |