mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 12:37:01 +03:00
Merge pull request #96 from michaelherger/firmware-proxy
Don't filter by HTTP verb - older firmwares are using GET rather than HEAD
This commit is contained in:
@@ -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
|
# 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->code(204);
|
||||||
$response->header('Access-Control-Allow-Origin' => '*');
|
$response->header('Access-Control-Allow-Origin' => '*');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user