fix(smallstrip,exceptions): missing return causing nil de-reference
This commit is contained in:
@@ -61,6 +61,7 @@ func (e Exception) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
handler, ok := r.Context().Value(handlerFuncCtxKey).(HandlerFunc)
|
handler, ok := r.Context().Value(handlerFuncCtxKey).(HandlerFunc)
|
||||||
if !ok {
|
if !ok {
|
||||||
e.handler(e, w, r)
|
e.handler(e, w, r)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
handler(e, w, r)
|
handler(e, w, r)
|
||||||
|
|||||||
Reference in New Issue
Block a user