MCPcopy Create free account
hub / github.com/devfeel/dotweb / getIgnoreFaviconModule

Function getIgnoreFaviconModule

middleware.go:126–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124}
125
126func 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
137func (x *xMiddleware) Handle(ctx Context) error {
138 if ctx.getMiddlewareStep() == "" {

Callers 1

Calls 3

PathMethod · 0.65
RequestMethod · 0.65
EndMethod · 0.65

Tested by

no test coverage detected