Binary string comparisons in ucode are currently unsafe, so use the
`length()` function to determine the just read data chunk size in
order to test for end of file.
Fixes: #6530
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
for (let name, value in this.message.params) {
while (value?.fd) {
let data = value.fd.read(1024);
for (let name, value in this.message.params) {
while (value?.fd) {
let data = value.fd.read(1024);
- let eof = (data == null || data == '');
+ let eof = (length(data) == 0);
this.filehandler(value, data, eof);
this.filehandler(value, data, eof);