clear the etag in every cases, not only when we upload files

This commit is contained in:
Olivier Goffart 2013-10-02 15:37:03 +02:00
parent e2a2b882bb
commit d135aab86c

View file

@ -59,6 +59,7 @@ void OwncloudPropagator::propagate(const SyncFileItem &item)
{
_errorCode = CSYNC_STATUS_OK;
_errorString.clear();
_etag.clear();
_httpStatusCode = 0;
switch(item._instruction) {
case CSYNC_INSTRUCTION_REMOVE:
@ -222,7 +223,6 @@ csync_instructions_e OwncloudPropagator::uploadFile(const SyncFileItem &item)
bool finished = true;
int attempts = 0;
_etag.clear(); // dangerous?
/*
* do ten tries to upload the file chunked. Check the file size and mtime
* before submitting a chunk and after having submitted the last one.