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:
parent
010c929e4c
commit
00176298cc
@ -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=$?
|
||||
;;
|
||||
*)
|
||||
|
Loading…
x
Reference in New Issue
Block a user