diff --git a/src/helpers.php b/src/helpers.php
index <HASH>..<HASH> 100644
--- a/src/helpers.php
+++ b/src/helpers.php
@@ -404,7 +404,7 @@ function debugHeader($message) {
         $message = (string) $message;
 
     static $i = 0;
-    header('X-Debug-'.++$i.': '.$message);
+    header('X-Debug-'.++$i.': '.str_replace(["\r", "\n"], ['\r', '\n'], $message));
 }
rosasurfer/debugHeader() could not handle line breaks