Fix random failures caused by CurlDownloader modifying a shared string
This commit is contained in:
		
							parent
							
								
									ea8e8df6c7
								
							
						
					
					
						commit
						e19c90fc6b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -157,7 +157,7 @@ struct CurlDownloader : public Downloader
 | 
				
			||||||
            curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
 | 
					            curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        data->clear();
 | 
					        data = make_ref<std::string>();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (requestHeaders) {
 | 
					        if (requestHeaders) {
 | 
				
			||||||
            curl_slist_free_all(requestHeaders);
 | 
					            curl_slist_free_all(requestHeaders);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue