title: force download using ZF2
body: <p>I am trying to do force download using ZF2. Here is the snippet to my code </p>
  
  <pre><code> use Zend\Http\Request;
   .....
     public function downloadAction() {
       $response = new Request();
      $response-&gt;setHeaders(Request::fromString("Content-Type: application/octet-stream\r\nContent-Length: 9\r\nContent-Disposition: attachment; filename=\"ultimate_remedy_readme.txt\""));
  
  
  }
  </code></pre>
  
  <p>now i am getting this error </p>
  
  <pre><code>/var/www/whowantsmymoney/vendor/zendframework/zendframework/library/Zend/Http/Request.php:88
  </code></pre>
  
  <p>Message:</p>
  
  <pre><code>A valid request line was not found in the provided string
  </code></pre>
  
  <p>Stack trace:</p>
  
  <pre><code>#0 /var/www/whowantsmymoney/module/Admin/src/Admin/Controller/LanguageController.php(93): Zend\Http\Request::fromString('Content-Type: a...')
  </code></pre>