Improve binary cache fallback test
This commit is contained in:
		
							parent
							
								
									a2ec7a3bfd
								
							
						
					
					
						commit
						ca06a9cea7
					
				
					 2 changed files with 12 additions and 7 deletions
				
			
		|  | @ -574,6 +574,11 @@ struct CurlDownloader : public Downloader | |||
| 
 | ||||
|     void enqueueItem(std::shared_ptr<DownloadItem> item) | ||||
|     { | ||||
|         if (item->request.data | ||||
|             && !hasPrefix(item->request.uri, "http://") | ||||
|             && !hasPrefix(item->request.uri, "https://")) | ||||
|             throw nix::Error("uploading to '%s' is not supported", item->request.uri); | ||||
| 
 | ||||
|         { | ||||
|             auto state(state_.lock()); | ||||
|             if (state->quit) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue