From e81dff9c07770650b8bf81e30474a0b957316de8 Mon Sep 17 00:00:00 2001 From: Stormwind Date: Sun, 6 Jan 2013 12:37:07 +0100 Subject: Kill all mutants i Zero::Request Fix tests for PATCH, because spec_helper didn't support it and the tests where wrong. Remove if statement from "conent_type", because ruby already returns nil, if the requested key in a hash is not found. (Sounds a bit ugly, but it's true.) --- lib/zero/request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/zero/request.rb') diff --git a/lib/zero/request.rb b/lib/zero/request.rb index c93bb7e..36ef705 100644 --- a/lib/zero/request.rb +++ b/lib/zero/request.rb @@ -56,7 +56,7 @@ module Zero # TODO change into its own object? # @return [String] returns the content type of the request def content_type - @env[CONST_CONTENT_TYPE] if @env.has_key?(CONST_CONTENT_TYPE) + @env[CONST_CONTENT_TYPE] end # get the media types -- cgit v1.2.3-70-g09d2