mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 20:41:57 +00:00
Add a simple pprof middleware for newcomers
Former-commit-id: f533df7e84b7e174d4cb861ff50d81772550feb0
This commit is contained in:
@@ -190,7 +190,7 @@ func registerRoute(route iris.RouteInfo, gorillaRouter *mux.Router, context iris
|
||||
|
||||
subdomain := route.Subdomain()
|
||||
if subdomain != "" {
|
||||
if subdomain == "*." {
|
||||
if subdomain == iris.DynamicSubdomainIndicator {
|
||||
// it's an iris wildcard subdomain
|
||||
// so register it as wildcard on gorilla mux too
|
||||
subdomain = "{subdomain}."
|
||||
|
||||
Reference in New Issue
Block a user