Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

Commit

Permalink
update response headers on message receive
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaidas Bagdonas committed Feb 6, 2020
1 parent 4933578 commit 0f81e3e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Controller/ReceiverController.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ public function receiveMessage(
], Response::HTTP_BAD_REQUEST);
}

return new Response(static::ACK_RESPONSE);
$response = new Response(static::ACK_RESPONSE);
$response->headers->set('Content-Type', 'text/xml');

return $response;
// return new JsonResponse([
// 'status' => 'OK',
// 'message' => sprintf('Received notification `%s`.', $notificationId),
Expand Down

0 comments on commit 0f81e3e

Please sign in to comment.