walkor преди 4 години
родител
ревизия
d26129e8e8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Protocols/Http.php

+ 1 - 1
Protocols/Http.php

@@ -196,7 +196,7 @@ class Http
             $connection->__request->connection = null;
             $connection->__request = null;
         }
-        if (\is_scalar($response) || null === $response) {
+        if (!\is_object($response)) {
             $ext_header = '';
             if (isset($connection->__header)) {
                 foreach ($connection->__header as $name => $value) {