Don't filter by HTTP verb - older firmwares are using GET rather than HEAD

This commit is contained in:
Michael Herger
2021-04-27 07:31:24 +02:00
parent be28555a40
commit 5c56abfe75

View File

@@ -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' => '*');