Skip to content

Commit c7ab6e2

Browse files
committed
Update syntax to match Rails content_mime_type
1 parent 4a60b3d commit c7ab6e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/chatops/controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def jsonrpc_params
6666

6767
def json_body
6868
hash = {}
69-
if request.content_type =~ %r/\Aapplication\/json\Z/i
69+
if request.content_mime_type == Mime[:json]
7070
hash = ActiveSupport::JSON.decode(request.raw_post) || {}
7171
end
7272
hash.with_indifferent_access

0 commit comments

Comments
 (0)