From: Ian Jackson Date: Sat, 31 Oct 2009 14:07:37 +0000 (+0000) Subject: get_source=1: Actually print the header X-Git-Tag: 5.3~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.web-live.git;a=commitdiff_plain;h=b18652c87304e9f236661da06908505c57ea3310 get_source=1: Actually print the header --- diff --git a/yarrg/commod-update-receiver b/yarrg/commod-update-receiver index cbd98f8..e03a918 100755 --- a/yarrg/commod-update-receiver +++ b/yarrg/commod-update-receiver @@ -62,7 +62,8 @@ sub must_param ($$) { my %o; if (param('get_source')) { - header('application/octet-stream'); + # There's another copy of this in dictionary-update-receiver. Sorry. + print header('application/octet-stream') or die $!; source_tarball('..', sub { print $_[0] or die $!; }); exit 0; } diff --git a/yarrg/dictionary-update-receiver b/yarrg/dictionary-update-receiver index 8ccea98..3baef66 100755 --- a/yarrg/dictionary-update-receiver +++ b/yarrg/dictionary-update-receiver @@ -43,7 +43,8 @@ use IO::Handle; use Commods; if (param('get_source')) { - header('application/octet-stream'); + # There's another copy of this in commod-update-receiver. Sorry. + print header('application/octet-stream') or die $!; source_tarball('..', sub { print $_[0] or die $!; }); exit 0; }