Skip to content

Commit

Permalink
Merge pull request #48 from wentasah/fix-no-sig-newline
Browse files Browse the repository at this point in the history
Don't generate extra newline when having zero signatures
  • Loading branch information
edolstra authored May 17, 2023
2 parents 3b6d300 + 7c79706 commit e6e3d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nix-serve.psgi
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ my $app = sub {
my $sig = signString($secretKey, $fingerprint);
$res .= "Sig: $sig\n";
} elsif (defined $sigs) {
$res .= join("\n", map { "Sig: $_" } @$sigs) . "\n";
$res .= join("", map { "Sig: $_\n" } @$sigs);
}
return [200, ['Content-Type' => 'text/x-nix-narinfo', 'Content-Length' => length($res)], [$res]];
}
Expand Down

0 comments on commit e6e3d09

Please sign in to comment.