edolstra / nix-serve

A standalone Nix binary cache server
GNU Lesser General Public License v2.1
163 stars 37 forks source link

Don't generate extra newline when having zero signatures #48

Closed wentasah closed 1 year ago

wentasah commented 1 year ago

When $sigs is defined but it is an array with zero elements, an extra newline is added to the response, making nix complain about corrupted narinfo file. With this change, no extra newline is added.