From afb62cec9097de884bee427093219d598561474d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 13 Jun 2019 06:54:13 +0000 Subject: nntp: add Path: header for leafnode Apparently leafnode just needs any junk in the Path: header. Lets not waste bandwidth and just use a single byte to keep leafnode happy. Cc: Dave Taht --- lib/PublicInbox/NNTP.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/PublicInbox/NNTP.pm') diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index be80560f..1d07220d 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -434,6 +434,10 @@ sub xref ($$$$) { sub set_nntp_headers ($$$$$) { my ($self, $hdr, $ng, $n, $mid) = @_; + # why? leafnode requires a Path: header for some inexplicable + # reason. We'll fake the shortest one possible. + $hdr->header_set('Path', 'y'); + # clobber some my $xref = xref($self, $ng, $n, $mid); $hdr->header_set('Xref', $xref); -- cgit v1.2.3-24-ge0c7