fix decoded uploads
authorGraham Knop <haarg@haarg.org>
Sun, 21 Oct 2018 03:10:22 +0000 (05:10 +0200)
committerGraham Knop <haarg@haarg.org>
Sun, 21 Oct 2018 20:54:15 +0000 (22:54 +0200)
commit2d48c2fc524aa2c1c077ba4be61970ed698af12d
tree6e1751b91a5fcc49b59faa64850b0c85dcfaf9eb
parent0d42b769cb502cae1587cbe8e606ea15921508d2
fix decoded uploads

sysread can't be used against UTF8 handles (deprecated since perl 5.24,
fatal since 5.30).  The only reasonable way to slurp an entire file
through an encoding layer is to use readline.  Using a read loop would
not be faster.
lib/Catalyst/Request/Upload.pm
t/utf_incoming.t