mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +00:00 
			
		
		
		
	Merge pull request #425 from owncloud/fix/add_content_length_error
add error log when content-length not equal to transfaired bytes
This commit is contained in:
		
						commit
						c24ffcfaa4
					
				| @ -159,6 +159,8 @@ public class DownloadRemoteFileOperation extends RemoteOperation { | |||||||
|                     } |                     } | ||||||
| 
 | 
 | ||||||
|                 } else { |                 } else { | ||||||
|  |                     Timber.e("Content-Length not equal to transferred bytes."); | ||||||
|  |                     Timber.d("totalToTransfer = %d, transferred = %d", totalToTransfer, transferred); | ||||||
|                     client.exhaustResponse(mGet.getResponseBodyAsStream()); |                     client.exhaustResponse(mGet.getResponseBodyAsStream()); | ||||||
|                     // TODO some kind of error control! |                     // TODO some kind of error control! | ||||||
|                 } |                 } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user