controller and http method detection cleanup