Skip to content

Commit

Permalink
Merge pull request #12 from BenWhitehead/method-upper
Browse files Browse the repository at this point in the history
Make sure that http method is all uppercase.
  • Loading branch information
BenWhitehead committed Feb 19, 2015
2 parents dcc24a0 + 8c423b2 commit 67f4403
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 67f4403

Please sign in to comment.