Commit 135b7b55 by Alexander Makarov

Added array initialization

parent 09f64d90
......@@ -37,6 +37,7 @@ class RequestPanel extends Panel
public function save()
{
$headers = Yii::$app->getRequest()->getHeaders();
$requestHeaders = [];
foreach ($headers as $name => $value) {
if (is_array($value) && count($value) == 1) {
$requestHeaders[$name] = current($value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment