summaryrefslogtreecommitdiff
path: root/changelogs
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-01-12 13:12:50 -0500
committerRémy Coutable <remy@rymai.me>2017-01-12 23:15:25 -0500
commit892ff3a3ae640272f8712fb190242f2b1fe010a0 (patch)
treec62ce2cfb477839e94ce3899e061b96e7776bd93 /changelogs
parent707570ac7de4867a62ad4c94c95e43e8ca0afbcb (diff)
downloadgitlab-ce-892ff3a3ae640272f8712fb190242f2b1fe010a0.tar.gz
Check for env[Grape::Env::GRAPE_ROUTING_ARGS] instead of endpoint.route26587-metrics-middleware-endpoint-is-nil
`endpoint.route` is calling `env[Grape::Env::GRAPE_ROUTING_ARGS][:route_info]` but `env[Grape::Env::GRAPE_ROUTING_ARGS]` is `nil` in the case of a 405 response Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'changelogs')
-rw-r--r--changelogs/unreleased/26587-metrics-middleware-endpoint-is-nil.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/changelogs/unreleased/26587-metrics-middleware-endpoint-is-nil.yml b/changelogs/unreleased/26587-metrics-middleware-endpoint-is-nil.yml
new file mode 100644
index 00000000000..5891a5ef6e8
--- /dev/null
+++ b/changelogs/unreleased/26587-metrics-middleware-endpoint-is-nil.yml
@@ -0,0 +1,4 @@
+---
+title: Check for env[Grape::Env::GRAPE_ROUTING_ARGS] instead of endpoint.route
+merge_request: 8544
+author: