note 83428 deleted from httpresponse.send by sobak
| From: | sobak@php.net | Date: | Sun, 04 Dec 2016 07:27:59 +0000 |
| Subject: | note 83428 deleted from httpresponse.send by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208124@lists.php.net to get a copy of this message | ||
Note Submitter: barnett dot [NOSPAM]thomas at gmail dot com
----
I was having a problem with the bytes appended to the output, using the given example.
<?php
...
HttpResponse::setFile('sheet.pdf');
HttpResponse::send();
?>
Content-Length mismatch: Response Header claimed x bytes, but server sent x+5 bytes.
Adding an exit statement solved this problem.