Commits

Mahlon Smith committed a0e1b1d

Safety check the edge case of request.params being nil (possible with
unusual methods that don't provide a content-type header, like HEAD.)

Comments (0)

Files changed (1)

lib/strelka/app/profiler.rb

 
 	### Set up the profiler if the request includes a 'profile' parameter.
 	def fixup_request( request )
-		RubyProf.start if request.params['profile']
+		RubyProf.start if request.params && request.params['profile']
 
 		super
 	end