Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
87d8900e
Commit
87d8900e
authored
May 07, 2020
by
Robert May
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add legacy toggle to clients
parent
91dc8ac6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/prometheus_client.rb
lib/gitlab/prometheus_client.rb
+1
-1
lib/mattermost/client.rb
lib/mattermost/client.rb
+1
-1
No files found.
lib/gitlab/prometheus_client.rb
View file @
87d8900e
...
...
@@ -163,7 +163,7 @@ module Gitlab
end
def
parse_json
(
response_body
)
Gitlab
::
Json
.
parse
(
response_body
)
Gitlab
::
Json
.
parse
(
response_body
,
legacy_mode:
true
)
rescue
JSON
::
ParserError
raise
PrometheusClient
::
Error
,
'Parsing response failed'
end
...
...
lib/mattermost/client.rb
View file @
87d8900e
...
...
@@ -49,7 +49,7 @@ module Mattermost
end
def
json_response
(
response
)
json_response
=
Gitlab
::
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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment