From f0a2f0bea491ca91976b351bb79837e95c9d094b Mon Sep 17 00:00:00 2001 From: Yassine Doghri <yassine@doghri.fr> Date: Thu, 8 Apr 2021 13:54:05 +0000 Subject: [PATCH] fix: add head request to analytics_hit route validators break because they can't request the episode's audio files with HEAD --- app/Config/Routes.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 4c1fb43023..3e3a16fc9c 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -71,6 +71,9 @@ $routes->group(config('App')->installGateway, function ($routes) { }); // Route for podcast audio file analytics (/audio/pack(podcast_id,episode_id,bytes_threshold,filesize,duration,date)/podcast_folder/filename.mp3) +$routes->head('audio/(:base64)/(:any)', 'Analytics::hit/$1/$2', [ + 'as' => 'analytics_hit', +]); $routes->get('audio/(:base64)/(:any)', 'Analytics::hit/$1/$2', [ 'as' => 'analytics_hit', ]); -- GitLab