mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[hp] Fix a small issue with the simple instrumentor. Remove igonore_aweful_caching from compute provider.
This commit is contained in:
parent
99f41d9f8c
commit
491e0fdf48
2 changed files with 5 additions and 4 deletions
|
@ -237,8 +237,7 @@ module Fog
|
|||
'X-Auth-Token' => @auth_token
|
||||
}.merge!(params[:headers] || {}),
|
||||
:host => @host,
|
||||
:path => "#{@path}/#{params[:path]}",
|
||||
:query => ('ignore_awful_caching' << Time.now.to_i.to_s)
|
||||
:path => "#{@path}/#{params[:path]}"
|
||||
}), &block)
|
||||
rescue Excon::Errors::HTTPStatusError => error
|
||||
raise case error
|
||||
|
|
|
@ -16,11 +16,13 @@ module Excon
|
|||
if name.include?('.request')
|
||||
query = ''
|
||||
if params.has_key?(:query) && !params[:query].nil?
|
||||
query = '?' if params[:query].count > 0
|
||||
params[:query].each do |key, value|
|
||||
query += "#{key}=#{value}&"
|
||||
end
|
||||
query.chomp!('&')
|
||||
if !tmp_query.nil?
|
||||
query = "?#{tmp_query}"
|
||||
query.chomp!('&')
|
||||
end
|
||||
end
|
||||
$stderr.puts("#{params[:method]} #{params[:path]}#{query} HTTP/1.1" )
|
||||
$stderr.puts("User-Agent: #{params[:headers]['User-Agent']}")
|
||||
|
|
Loading…
Reference in a new issue