1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-22 22:03:39 +03:00

feature #1303: Use wget instead of curl to get http headers

This commit is contained in:
Ruben S. Montero 2012-06-20 13:24:00 +02:00
parent 010c929e4c
commit 00176298cc

View File

@ -92,7 +92,7 @@ function fs_size {
case $1 in
http://*)
SIZE=`curl --head $1 2>/dev/null | grep Length | cut -d':' -f2`
SIZE=`wget -S --spider $1 2>&1 | grep Content-Length | cut -d':' -f2`
error=$?
;;
*)