lib/loquor/http_action.rb in loquor-1.10.0 vs lib/loquor/http_action.rb in loquor-1.11.0
- old
+ new
@@ -5,11 +5,14 @@
@config = deps[:config]
@should_cache = deps[:should_cache]
end
def signed_request
+ req = request
+ @config.logger.info "Setting user-agent."
+ req.headers['User-Agent'] = @config.access_id
@config.logger.info "Signing request."
- ApiAuth.sign!(request, @config.access_id, @config.secret_key)
+ ApiAuth.sign!(req, @config.access_id, @config.secret_key)
end
def execute
@config.logger.info "Making HTTP request to: #{full_url}"
signed_request.execute