diff options
Diffstat (limited to 'lib/mattermost/client.rb')
-rw-r--r-- | lib/mattermost/client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mattermost/client.rb b/lib/mattermost/client.rb index 293d0c563c5..a9551ffbd30 100644 --- a/lib/mattermost/client.rb +++ b/lib/mattermost/client.rb @@ -49,7 +49,7 @@ module Mattermost end def json_response(response) - json_response = JSON.parse(response.body) + json_response = Gitlab::Json.parse(response.body, legacy_mode: true) unless response.success? raise Mattermost::ClientError.new(json_response['message'] || 'Undefined error') |