summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/net/hippie/content_type_mapper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/hippie/content_type_mapper.rb b/lib/net/hippie/content_type_mapper.rb
index 132ee27..2051c27 100644
--- a/lib/net/hippie/content_type_mapper.rb
+++ b/lib/net/hippie/content_type_mapper.rb
@@ -4,7 +4,7 @@ module Net
class ContentTypeMapper
def map_from(headers, body)
content_type = headers['Content-Type'] || ''
- return JSON.generate(body) if content_type.include?("json")
+ return JSON.generate(body) if content_type.include?('json')
body
end
end