Issue 654: if /dh handler is called without params, return 404

This commit is contained in:
antisnatchor
2012-04-09 11:03:02 +01:00
parent c60825faae
commit 8cac63a2f0

View File

@@ -28,7 +28,7 @@ module Handlers
MOUNTS = BeEF::Core::Server.instance.mounts
before do
error 404 unless params != nil
error 404 unless !params.empty?
headers 'Pragma' => 'no-cache',
'Cache-Control' => 'no-cache',
'Expires' => '0'