use HEAD request when just checking the file size
This code will be changed again when implementing the client-side etag check #562 closes #777
This commit is contained in:
		
							parent
							
								
									096b7132c4
								
							
						
					
					
						commit
						ab1e869ebe
					
				| @ -83,6 +83,7 @@ public class HttpDownloader extends Downloader { | ||||
| 
 | ||||
|         // get the file size from the server | ||||
|         HttpURLConnection tmpConn = getConnection(); | ||||
|         tmpConn.setRequestMethod("HEAD"); | ||||
|         int contentLength = -1; | ||||
|         if (tmpConn.getResponseCode() == 200) { | ||||
|             contentLength = tmpConn.getContentLength(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Hans-Christoph Steiner
						Hans-Christoph Steiner