From 5c56abfe7597a05e8edefb154c119b19f8140bca Mon Sep 17 00:00:00 2001 From: Michael Herger Date: Tue, 27 Apr 2021 07:31:24 +0200 Subject: [PATCH] Don't filter by HTTP verb - older firmwares are using GET rather than HEAD --- plugin/SqueezeESP32/FirmwareHelper.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/SqueezeESP32/FirmwareHelper.pm b/plugin/SqueezeESP32/FirmwareHelper.pm index b6cd7c7b..55292ae4 100644 --- a/plugin/SqueezeESP32/FirmwareHelper.pm +++ b/plugin/SqueezeESP32/FirmwareHelper.pm @@ -163,7 +163,7 @@ sub handleFirmwareDownload { } # this is the magic request used on the client to figure out whether the plugin does support download proxying - if ($path =~ /^(?:-99|-check.bin)$/ && $request->method eq 'HEAD') { + if ($path =~ /^(?:-99|-check.bin)$/) { $response->code(204); $response->header('Access-Control-Allow-Origin' => '*');