summaryrefslogtreecommitdiff
path: root/lib/api/notes.rb
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2018-05-15 17:37:19 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2018-05-15 17:38:39 +0200
commitc003337729e6a68df10878f77b11c7a24321df9c (patch)
tree1e17667be4468aa060e0b701b957657578002fa6 /lib/api/notes.rb
parentf4ef6b474c44eb8e7034034dd95152818ae33b4a (diff)
downloadgitlab-ce-c003337729e6a68df10878f77b11c7a24321df9c.tar.gz
Fix setting Gitlab metrics content types
The method "content_type" on a controller does not always return the correct content type. On the other hand, the method "request_format" does _and_ immediately returns a Symbol (e.g. :json) instead of a mime-type name (e.g. application/json). With these changes metrics should again report their action names correctly. Fixes https://gitlab.com/gitlab-com/infrastructure/issues/3499
Diffstat (limited to 'lib/api/notes.rb')
0 files changed, 0 insertions, 0 deletions