1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

utilize excon fix to pass Content-Length: 0 for no body requests

This commit is contained in:
geemus (Wesley Beary) 2010-03-29 23:00:03 -07:00
parent 53b0f9821f
commit 1037840421
2 changed files with 1 additions and 2 deletions

View file

@ -7,7 +7,7 @@ require "#{current_directory}/lib/fog"
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.add_dependency('excon', '>=0.0.20')
gem.add_dependency('excon', '>=0.0.21')
gem.add_dependency('formatador', '>=0.0.10')
gem.add_dependency('json')
gem.add_dependency('mime-types')

View file

@ -22,7 +22,6 @@ module Fog
# * 'status'<~String> - Current status of the slice
def reboot_slice(slice_id, type = 'SOFT')
request(
:body => '', # Gives a 411 Length Required without this
:expects => 200,
:method => 'PUT',
:parser => Fog::Parsers::Slicehost::GetSlice.new,