fetch: indicate an error if the connection was terminated prematurely
[project/uclient.git] / uclient.c
index fb450699654e86ef370575c03cf12192429bc348..ab2d5b6c393fa6c14d03693ae76f5dbe392767f2 100644 (file)
--- a/uclient.c
+++ b/uclient.c
@@ -267,6 +267,7 @@ void __hidden uclient_backend_set_eof(struct uclient *cl)
 
 void __hidden uclient_backend_reset_state(struct uclient *cl)
 {
+       cl->data_eof = false;
        cl->eof = false;
        cl->error_code = 0;
        uloop_timeout_cancel(&cl->timeout);