-
-
Notifications
You must be signed in to change notification settings - Fork 956
Closed
Labels
Description
Good morning.
I found that in a case of GraphQl request Api-Platform doesn't add http headers (even if it's a GET request):
core/src/HttpCache/EventListener/AddHeadersListener.php
Lines 43 to 48 in 4dacd1a
| public function onKernelResponse(FilterResponseEvent $event) | |
| { | |
| $request = $event->getRequest(); | |
| if (!$request->isMethodCacheable() || !RequestAttributesExtractor::extractAttributes($request)) { | |
| return; | |
| } |
It's because the second check RequestAttributesExtractor::extractAttributes($request) returns empty array. Am I doing something wrong or it's a bug?