about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-02-29 01:05:16 +0000
committerEric Wong <e@80x24.org>2016-02-29 01:06:56 +0000
commitc450d851f8cb466e275097bcc7bf13bfc9365b81 (patch)
tree5508f9baf5c24948cc62363c65bb092ffb2c337b /lib
parent79d9b48a0fa8c9158377fa120be25468f6aab1b8 (diff)
downloadpublic-inbox-c450d851f8cb466e275097bcc7bf13bfc9365b81.tar.gz
It is not needed as we know git uses CRLF termination.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/GitHTTPBackend.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/GitHTTPBackend.pm b/lib/PublicInbox/GitHTTPBackend.pm
index 6e8ad955..8e6d8b64 100644
--- a/lib/PublicInbox/GitHTTPBackend.pm
+++ b/lib/PublicInbox/GitHTTPBackend.pm
@@ -201,11 +201,11 @@ sub serve_smart {
                 if ($fh) { # stream body from git-http-backend to HTTP client
                         $fh->write($buf);
                         $buf = '';
-                } elsif ($buf =~ s/\A(.*?)\r?\n\r?\n//s) { # parse headers
+                } elsif ($buf =~ s/\A(.*?)\r\n\r\n//s) { # parse headers
                         my $h = $1;
                         my $code = 200;
                         my @h;
-                        foreach my $l (split(/\r?\n/, $h)) {
+                        foreach my $l (split(/\r\n/, $h)) {
                                 my ($k, $v) = split(/:\s*/, $l, 2);
                                 if ($k =~ /\AStatus\z/i) {
                                         $code = int($v);