浏览代码

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

Michael Herger 3 年之前
父节点
当前提交
5c56abfe75
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugin/SqueezeESP32/FirmwareHelper.pm

+ 1 - 1
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
 	# 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' => '*');