Skip to content

Commit

Permalink
Merge pull request #96 from michaelherger/firmware-proxy
Browse files Browse the repository at this point in the history
Don't filter by HTTP verb - older firmwares are using GET rather than HEAD
  • Loading branch information
philippe44 committed Apr 27, 2021
2 parents 9ac7c5b + 5c56abf commit 51761d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/SqueezeESP32/FirmwareHelper.pm
Expand Up @@ -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' => '*');

Expand Down

0 comments on commit 51761d0

Please sign in to comment.