Merge "Allow for redirects to ftp servers"
This commit is contained in:
commit
52956a2c3a
1 changed files with 3 additions and 1 deletions
|
@ -46,7 +46,9 @@ if [ "$rcode" = "200" ] ; then
|
|||
echo $success
|
||||
mv $tmp $dest
|
||||
fi
|
||||
elif [ "$rcode" = "304" ] ; then
|
||||
# 213 is the response to a ftp MDTM command, curl outputs a 213 as the status
|
||||
# if the url redirected to a ftp server and Not-Modified
|
||||
elif [ "$rcode" = "304" -o "$rcode" = "213" ] ; then
|
||||
echo "Server copy has not changed. Using locally cached $url"
|
||||
rm -f $tmp
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue