content-length problem #13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When I use Nginx, the content-length for download page is not the same as file size
So we can modify
src/Gist/Controller/ViewController.php
and change'Content-Length' => filesize($file),
to'Content-Length' => strlen($viewOptions['raw_content']),
strlen
ormb_strlen
? Did you try it?I use
strlen
and it works fine on Nginx with php7.2-fpmAlready fixed on dev-master:
b74960ecd3
Released on v1.8.1: https://gitnet.fr/deblan/gist/src/v1.8.1