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 cbd98f8..e03a918 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 8ccea98..3baef66 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;
 }