Skip to content

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Oct 26, 2023

fixes #5924

];

$exception = $request->attributes->get('exception');
if (($exception instanceof HttpExceptionInterface || $exception instanceof SymfonyHttpExceptionInterface) && $exceptionHeaders = $exception->getHeaders()) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a huge fan of this right now because of the HttpKernel dependency, I'll see to probably move this in the bridge in the future.

@soyuka soyuka merged commit 4f51b51 into api-platform:3.2 Oct 26, 2023
@soyuka soyuka deleted the fix/exception-headers branch October 26, 2023 15:52
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.

1 participant