1
0
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:
Gerasimos (Makis) Maropoulos
2017-03-05 03:36:00 +02:00
parent b961bedab0
commit 7e11032042
3 changed files with 84 additions and 1 deletions

View File

@@ -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}."