diff options
author | Eric Wong <e@80x24.org> | 2019-06-13 06:54:13 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-13 06:54:48 +0000 |
commit | afb62cec9097de884bee427093219d598561474d (patch) | |
tree | 1da183f9c047c977de3bf891a6ac56b99711ad0a | |
parent | 9bcbfbd478b961786586099af6e6c14775b3827c (diff) | |
download | public-inbox-afb62cec9097de884bee427093219d598561474d.tar.gz |
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 <dave@taht.net>
-rw-r--r-- | lib/PublicInbox/NNTP.pm | 4 |
1 files changed, 4 insertions, 0 deletions
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); |