Skip to content

Commit

Permalink
Don't filter by HTTP verb - older firmwares are using GET rather than…
Browse files Browse the repository at this point in the history
… HEAD
  • Loading branch information
mherger committed Apr 27, 2021
1 parent be28555 commit 5c56abf
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 5c56abf

Please sign in to comment.