Skip to content

Commit

Permalink
Merge pull request dexidp#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 44871cd + 752f481 commit d1f740b
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 d1f740b

Please sign in to comment.