From: Eric Wong Date: Fri, 8 Jul 2016 18:20:44 +0000 (+0000) Subject: http: drop extra newline in error message X-Git-Tag: v1.0.0~292 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dc9f9ca80c8a9f42ae7c674dd78d59ba062a87c;p=thirdparty%2Fpublic-inbox.git http: drop extra newline in error message We already add the extra newline when we call print. --- diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm index 17f89302b..fa34b443f 100644 --- a/lib/PublicInbox/HTTP.pm +++ b/lib/PublicInbox/HTTP.pm @@ -335,7 +335,7 @@ sub write_err { my ($self, $len) = @_; my $err = $self->{httpd}->{env}->{'psgi.errors'}; my $msg = $! || '(zero write)'; - $msg .= " ($len bytes remaining)\n" if defined $len; + $msg .= " ($len bytes remaining)" if defined $len; $err->print("error buffering to input: $msg\n"); quit($self, 500); }