Browse Source

Fix build error

Mischa ter Smitten 5 years ago
parent
commit
4c762044cd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/Http/Response.php

+ 2 - 1
src/Http/Response.php

@@ -624,7 +624,8 @@ class Response implements ResponseInterface
         );
 
         if (in_array($this->_status, [304, 204])) {
-            $this = $this->withStringBody('');
+            $this->_createStream();
+            $this->stream->write('');
         }
     }