Skip to content

Commit

Permalink
Make sure that http method is all uppercase.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWhitehead committed Feb 19, 2015
1 parent dcc24a0 commit 8c423b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ package object filters {
else statsReceiver.scope("route")
}
def apply(request: HttpRequest, service: Service[HttpRequest, HttpResponse]): Future[HttpResponse] = {
val label = s"${request.method}/Root/${request.path.stripPrefix("/")}"
val label = s"${request.method.toString.toUpperCase}/Root/${request.path.stripPrefix("/")}"
stats.timeFuture(label) {
val f = service(request)
stats.counter(label).incr()
Expand Down

0 comments on commit 8c423b2

Please sign in to comment.