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

fix: make middleware work with all http methods #142

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MaGOs92
Copy link
Contributor

@MaGOs92 MaGOs92 commented Sep 12, 2024

Mattermost : https://mattermost.incubateur.net/betagouv/pl/iy7nwfkmo3domc91d4jf41smfy

Problème : Quand on applique un middleware sur une route en particulier, il ne fonctionne qu'avec la méthode http attendue par le controller. Le souci c'est que pour les methodes HEAD et OPTIONS, le middleware ne s'applique pas et le serveur renvoie une 500.
=> Appliquer les middleware pour toutes les méthodes HTTP

@MaGOs92 MaGOs92 requested a review from fufeck September 12, 2024 08:03
@MaGOs92 MaGOs92 force-pushed the gfay_fix_middleware-works-with-all-http-methods branch from 8c3398f to 234285c Compare October 22, 2024 15:24
@MaGOs92 MaGOs92 requested a review from fufeck October 22, 2024 15:25
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