4 "warning_type": "HTTP Verb Confusion",
6 "fingerprint": "9567bbac855c6ec5552572700ec809d7c1d77f59953e6725aeca54fee5091674",
7 "check_name": "VerbConfusion",
8 "message": "Potential HTTP verb confusion. `HEAD` is routed like `GET` but `request.get?` will return `false`",
9 "file": "app/controllers/application_controller.rb",
11 "link": "https://brakemanscanner.org/docs/warning_types/http_verb_confusion/",
12 "code": "if request.get? then\n respond_to do\n format.html do\n redirect_to(:controller => \"/errors\", :action => \"bad_request\")\n end\n format.any do\n head(:bad_request)\n end\n end\nelse\n head(:bad_request)\nend",
16 "class": "ApplicationController",
17 "method": "invalid_parameter"
19 "user_input": "request.get?",
27 "updated": "2024-04-11 10:07:03 +0100",
28 "brakeman_version": "6.1.2"