()
| 124 | } |
| 125 | |
| 126 | func getIgnoreFaviconModule() *HttpModule { |
| 127 | return &HttpModule{ |
| 128 | Name: "IgnoreFavicon", |
| 129 | OnBeginRequest: func(ctx Context) { |
| 130 | if ctx.Request().Path() == "/favicon.ico" { |
| 131 | ctx.End() |
| 132 | } |
| 133 | }, |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | func (x *xMiddleware) Handle(ctx Context) error { |
| 138 | if ctx.getMiddlewareStep() == "" { |
no test coverage detected