1
0
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:
Carlos J. Herrera 2021-03-04 15:03:03 -05:00 committed by GitHub
parent 50a8255df2
commit 17e9164472
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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