From ce29fe417cc1c0f237744ba7a12961c88e216bf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Perrin?= Date: Thu, 27 Jun 2019 10:53:20 +0200 Subject: [PATCH] [FEATURE] Do not send text headers if capture --- ref.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref.php b/ref.php index c5b84d2..8f126a4 100644 --- a/ref.php +++ b/ref.php @@ -69,7 +69,7 @@ function rt(){ if(func_num_args() !== count($expressions)) $expressions = null; - if(!headers_sent()) + if(!headers_sent() || $capture) header('Content-Type: text/plain; charset=utf-8'); if($capture)