Skip to content

Commit

Permalink
Merge pull request #1429 from tsuna/master
Browse files Browse the repository at this point in the history
server: add metrics for CORS handlers.
  • Loading branch information
ericchiang authored May 12, 2019
2 parents 35f5195 + d6ad67a commit cd3c698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func newServer(ctx context.Context, c Config, rotationStrategy rotationStrategy)
corsOption := handlers.AllowedOrigins(c.AllowedOrigins)
handler = handlers.CORS(corsOption)(handler)
}
r.Handle(path.Join(issuerURL.Path, p), handler)
r.Handle(path.Join(issuerURL.Path, p), instrumentHandlerCounter(p, handler))
}
r.NotFoundHandler = http.HandlerFunc(http.NotFound)

Expand Down

0 comments on commit cd3c698

Please sign in to comment.