From ab51106c4f5d5dd1b54b59851a59cbfc4af4e124 Mon Sep 17 00:00:00 2001 From: Jan Henning Thorsen Date: Wed, 24 Mar 2021 09:29:46 +0900 Subject: [PATCH] Released version 1.18 - Fix compatibility with Mojolicious 9.11 --- Changes | 2 +- README.md | 3 +++ lib/LinkEmbedder.pm | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 6f589ad..9ca2fc7 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,6 @@ Revision history for perl distribution LinkEmbedder -1.18 Not Released +1.18 2021-03-24T09:29:43+0900 - Fix compatibility with Mojolicious 9.11 1.17 2021-02-03T10:35:43+0900 diff --git a/README.md b/README.md index 61330a7..11d67f0 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,9 @@ Used as a helper for [Mojolicious](https://metacpan.org/pod/Mojolicious) web app request. Will also set ["name" in Mojo::UserAgent::Transactor](https://metacpan.org/pod/Mojo%3A%3AUserAgent%3A%3ATransactor#name) for ["ua"](#ua) if the incoming request contains a "User-Agent" header. +Note that in [Mojolicious](https://metacpan.org/pod/Mojolicious) 9.11 and later, you must define the format for your +route to serve with extension .html, .json or .jsonp. + # AUTHOR Jan Henning Thorsen diff --git a/lib/LinkEmbedder.pm b/lib/LinkEmbedder.pm index 7d002bb..b177dd7 100644 --- a/lib/LinkEmbedder.pm +++ b/lib/LinkEmbedder.pm @@ -11,7 +11,7 @@ use constant TLS => eval { require IO::Socket::SSL; IO::Socket::SSL->VERSION('2. use constant DEBUG => $ENV{LINK_EMBEDDER_DEBUG} || 0; -our $VERSION = '1.17'; +our $VERSION = '1.18'; my $PROTOCOL_RE = qr!^(\w+):\w+!i; # Examples: mail:, spotify:, ...