]> git.sesse.net Git - pr0n/commitdiff
Unbreak rotation.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 30 Nov 2015 21:23:41 +0000 (22:23 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 30 Nov 2015 21:26:05 +0000 (22:26 +0100)
perl/Sesse/pr0n/Rotate.pm

index d5086ecc7b8715053067b1110b3053fba3f3d3ce..886f7bc54229bcb1362668bd24f95232f80f2434 100644 (file)
@@ -15,11 +15,11 @@ sub handler {
 
        my @to_purge = ();
 
 
        my @to_purge = ();
 
-       Sesse::pr0n::Common::header($r, "Rotation/deletion results");
-
        my $res = Plack::Response->new(200);
        my $io = IO::String->new;
 
        my $res = Plack::Response->new(200);
        my $io = IO::String->new;
 
+       Sesse::pr0n::Common::header($r, $io, "Rotation/deletion results");
+
        {
                # Enable transactions and error raising temporarily
                local $dbh->{RaiseError} = 1;
        {
                # Enable transactions and error raising temporarily
                local $dbh->{RaiseError} = 1;