diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-11-19 13:48:44 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2010-11-19 13:48:44 +0000 |
commit | 3a16deec73ccb3eaffc85c1126bcb01d52ea32d2 (patch) | |
tree | ba950d7f10e1022154e58f77245bdf47fc79611e /sitesummary-upload | |
parent | 39609f4393fee472f8ff3932413aa19281bb5fca (diff) | |
download | sitesummary-3a16deec73ccb3eaffc85c1126bcb01d52ea32d2.tar.gz sitesummary-3a16deec73ccb3eaffc85c1126bcb01d52ea32d2.tar.bz2 sitesummary-3a16deec73ccb3eaffc85c1126bcb01d52ea32d2.tar.xz |
Change sitesummary-upload to not try to parse an empty $http_proxy
variable. This get it working on hosts without a proxy setting.
Diffstat (limited to 'sitesummary-upload')
-rwxr-xr-x | sitesummary-upload | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sitesummary-upload b/sitesummary-upload index 6e5504c..04aaf4b 100755 --- a/sitesummary-upload +++ b/sitesummary-upload @@ -31,7 +31,7 @@ print "Unable to parse url\n" if ($opts{'d'} && ! $host); my ($http_proxy,$proxy,$port,$remote); $http_proxy=$ENV{'http_proxy'}; -if (defined($http_proxy)) +if (defined($http_proxy) && $http_proxy) { $http_proxy =~ m{http://([^:]*)(?::([0-9]+))?} or die ("unrecognized http_proxy"); |