Skip to content

[BUG] MVC UseResultHandler does not handle nil #2534

Description

@haoval
app.ConfigureContainer().UseResultHandler(func(next iris.ResultHandler) iris.ResultHandler {
	return func(ctx iris.Context, v interface{}) error {
		/* this function not being called */
		fmt.Println(v)
		return next(ctx, v)
	}
})

func (c *CustomController) Get() any {
	return nil
}

I want it to run even if the return value is nil.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions