chiark / gitweb /
get_source=1: Actually print the header
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 31 Oct 2009 14:07:37 +0000 (14:07 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 31 Oct 2009 14:07:37 +0000 (14:07 +0000)
yarrg/commod-update-receiver
yarrg/dictionary-update-receiver

index cbd98f84b2e15c64b64bd4e4d1674d856f95b1b4..e03a91828424c7da947aeb3af599402d59e4e005 100755 (executable)
@@ -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;
 }
index 8ccea9823be369cb7fbe3221c11304baf3c97aac..3baef669ddf6b4eefcc7a7942cb709118a9fc9dc 100755 (executable)
@@ -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;
 }