From: Michael Date: Tue, 13 Nov 2018 20:20:54 +0000 (+0000) Subject: Avoid "Cannot modify header information - headers already sent" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=83ae87364683f4a9a2879cd53e9cac8fdda32275;p=friendica.git Avoid "Cannot modify header information - headers already sent" --- diff --git a/mod/profile.php b/mod/profile.php index 218cc26e4b..0dc592a977 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -59,8 +59,8 @@ function profile_init(App $a) $user = DBA::selectFirst('user', ['uid'], ['nickname' => $which]); if (DBA::isResult($user)) { $data = ActivityPub\Transmitter::getProfile($user['uid']); - echo json_encode($data); header('Content-Type: application/activity+json'); + echo json_encode($data); exit(); } }