From 3ce86cf30ea9ac350335b9706efe4635f9a4606b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20RAMAGE?= Date: Wed, 18 Dec 2019 10:02:36 +0100 Subject: [PATCH] fix format --- core/php/zigateproxy.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/php/zigateproxy.php b/core/php/zigateproxy.php index d6e93e5..aaf51e2 100644 --- a/core/php/zigateproxy.php +++ b/core/php/zigateproxy.php @@ -29,14 +29,14 @@ $headers_str = []; $url = 'http://localhost'.$_GET['url']; $params = ''; - foreach ($_GET as $key => $value){ + foreach ($_GET as $key => $value) { if ($key == 'url') { continue; } $params .= $key.'='.$value.'&'; } $params = trim($params, '&'); - if ($params){ + if ($params) { $url = $url.'?'.$params; } @@ -80,14 +80,12 @@ if (isset($info[CURLINFO_CONTENT_TYPE])) { header('Content-Type: '.$info[CURLINFO_CONTENT_TYPE]); - } - else { + } else { header('Content-Type: text/html'); } if (isset($info[CURLINFO_RESPONSE_CODE])) { http_response_code($info[CURLINFO_RESPONSE_CODE]); - } - else { + } else { http_response_code(200); } header('Access-Control-Allow-Origin: *');