From 8d4844b43618f88883b1e3d8948693ce21bdee5d Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 3 Feb 2021 21:54:45 -0500 Subject: www: call curl with -d '' in the altid instructions Nginx doesn't appear to be happy with just -XPOST, so use -d '' to avoid potential confusion about why the instructions aren't working. cf. commit 533e1234bc03a1ca8754d249aa8c2ce157e26780 (lei_xsearch: use curl -d '' for nginx compatibility, 2021-01-24) --- lib/PublicInbox/WwwText.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/WwwText.pm') diff --git a/lib/PublicInbox/WwwText.pm b/lib/PublicInbox/WwwText.pm index 817d032c..9f46c6a6 100644 --- a/lib/PublicInbox/WwwText.pm +++ b/lib/PublicInbox/WwwText.pm @@ -165,7 +165,7 @@ EOS ; gzip(1), and sqlite3(1) as documented: EOF for (sort keys %$altid_map) { - $$txt .= "\t;\tcurl -XPOST $base_url$_.sql.gz | \\\n" . + $$txt .= "\t;\tcurl -d '' $base_url$_.sql.gz | \\\n" . "\t;\tgzip -dc | \\\n" . "\t;\tsqlite3 $inboxdir/$_.sqlite3\n"; $$txt .= "\taltid = serial:$_:file=$_.sqlite3\n"; -- cgit v1.2.3-24-ge0c7