mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
M #-: compatible with vCenter70 file headers (#919)
Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
This commit is contained in:
parent
50a8255df2
commit
17e9164472
@ -653,8 +653,8 @@ module VCenterDriver
|
||||
|
||||
wout.close
|
||||
size = rout.readlines.select do |l|
|
||||
l.start_with?('Content-Length')
|
||||
end[0].sub('Content-Length: ', '')
|
||||
l.downcase.start_with?('content-length')
|
||||
end[0].downcase.sub('content-length: ', '')
|
||||
rout.close
|
||||
size.chomp.to_i < 4096 # If <4k, then is a descriptor
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user