logo

ap-client

CLI-based client / toolbox for ActivityPub Client-to-Servergit clone https://hacktivis.me/git/ap-client.git
commit: 0ad48f344d524a4a2623ed197cbe44212e3bfd83
parent 5326f738474bb89d6d5072a9dd615243c9cacfa4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 30 Mar 2023 07:45:28 +0200

script/ap-fetch: Fix content_match regex

Diffstat:

Mscript/ap-fetch2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/script/ap-fetch b/script/ap-fetch @@ -72,7 +72,7 @@ my $res = $ua->request($req); if ($res->is_success) { my $content_type = $res->header("Content-Type"); - my $content_match = /application\/([^+]*+)?json(; .*)?/; + my $content_match = qr{^application/([^+]*\+)?json(; .*)?}; if ($content_type =~ $content_match) { if (defined $options{r}) {