luci-base: http.uc: fix eof detection in temporary upload files