We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bfba22 commit 6b584daCopy full SHA for 6b584da
src/PathSegment/Service.php
@@ -21,6 +21,11 @@ class Service implements JsonInterface, ResponseInterface
21
{
22
public function response(Transaction $transaction, ?ContextInterface $context = null): Response
23
24
+ if (Request::METHOD_HEAD === $transaction->getMethod()) {
25
+ return $transaction->getResponse()->setCallback(function () use ($transaction) {
26
+ $transaction->sendOutput('');
27
+ });
28
+ }
29
$transaction->assertMethod(Request::METHOD_GET);
30
31
return $transaction->getResponse()->setCallback(function () use ($transaction) {
0 commit comments