From 6f7928b111bceffe5042b0a2667e6c0a68dba827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phil=20H=C3=B6fer?= <phil@suma-ev.de> Date: Thu, 7 Sep 2017 11:09:12 +0200 Subject: [PATCH] set contenttype --- app/MetaGer.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/MetaGer.php b/app/MetaGer.php index 3209479b3..868f8741d 100644 --- a/app/MetaGer.php +++ b/app/MetaGer.php @@ -165,12 +165,13 @@ class MetaGer ->with('resultcount', sizeof($viewResults)); break; case 'atom10': - return view('metager3resultsatom10') + return response()->view('metager3resultsatom10') ->with('results', $viewResults) ->with('eingabe', $this->eingabe) ->with('apiAuthorized', $this->apiAuthorized) ->with('metager', $this) - ->with('resultcount', sizeof($viewResults)); + ->with('resultcount', sizeof($viewResults)) + ->header('Content-Type', 'application/xml'); break; case 'result-count': # Wir geben die Ergebniszahl und die benötigte Zeit zurück: -- GitLab