From 4e1e4cb16e25b0ee87b9d4d143f7b1e866383c9f Mon Sep 17 00:00:00 2001
From: Dominik Hebeler <dominik@suma-ev.de>
Date: Mon, 1 Feb 2021 12:30:16 +0100
Subject: [PATCH] fixed headers in file_get_contents

---
 app/Models/Key.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/Models/Key.php b/app/Models/Key.php
index cef26ef15..11ba31515 100644
--- a/app/Models/Key.php
+++ b/app/Models/Key.php
@@ -73,8 +73,10 @@ class Key
         $opts = array(
             'http' => array(
                 'method' => 'POST',
-                'header' => 'Content-type: application/x-www-form-urlencoded\r\n' . 
-                            'Authorization: Basic ' . $authKey . '\r\n',
+                'header' => [
+                    'Content-type: application/x-www-form-urlencoded',
+                    'Authorization: Basic ' . $authKey
+                ],
                 'content' => $postdata,
             ),
         );
-- 
GitLab