Created feeds and UI for feeds and newsletter
🚀 Deploy website on push / 🎉 Deploy (push) Successful in 19s
🚀 Deploy website on push / 🎉 Deploy (push) Successful in 19s
Signed-off-by: rodude123 <rodude123@gmail.com>
This commit is contained in:
@@ -65,7 +65,12 @@ class middleware
|
||||
$app->add(function ($request, $handler)
|
||||
{
|
||||
$response = $handler->handle($request);
|
||||
return $response->withHeader("Content-Type", "application/json");
|
||||
$contentType = $response->getHeaderLine("Content-Type");
|
||||
if (empty($contentType) || $contentType === "text/html")
|
||||
{
|
||||
return $response->withHeader("Content-Type", "application/json");
|
||||
}
|
||||
return $response;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user