(Translated by https://www.hiragana.jp/)
Enrich request for pedestal/routing-interceptor default-queue by kommen · Pull Request #495 · metosin/reitit · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enrich request for pedestal/routing-interceptor default-queue #495

Merged

Conversation

kommen
Copy link
Contributor

@kommen kommen commented Jun 24, 2021

This ensures requests handled by the default-queue in pedestal/routing-interceptor
also have access to the router per the injected :reitit.core/router key on the request.

Without this, interceptors in the default queue don't have access to the router.

For example, this is needed for the trailing slash handler, which relies on the router being injected.

The commit contains a test which fails without the change in reitit.http.

This ensures requests handled by the default queue also have
access to the router per the injected :reitit.core/router key
on the request.
@ikitommi ikitommi merged commit 57e1d16 into metosin:master Aug 3, 2021
@ikitommi
Copy link
Member

ikitommi commented Aug 3, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants