mirror of
				https://github.com/acmesh-official/acme.sh
				synced 2025-11-04 13:55:56 +08:00 
			
		
		
		
	improve curl --help predication
				
					
				
			This commit is contained in:
		
							
								
								
									
										4
									
								
								acme.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								acme.sh
									
									
									
									
									
								
							@@ -1852,12 +1852,12 @@ _inithttp() {
 | 
			
		||||
      _ACME_CURL="$_ACME_CURL --cacert $CA_BUNDLE "
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
    if _contains "$(curl --help 2>&1)" "--globoff"; then
 | 
			
		||||
    if _contains "$(curl --help curl 2>&1)" "--globoff"; then
 | 
			
		||||
      _ACME_CURL="$_ACME_CURL -g "
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
    #from curl 7.76: return fail on HTTP errors but keep the body
 | 
			
		||||
    if [ "$_ACME_CURL" ] && _contains "$($_ACME_CURL --help http)" "--fail-with-body"; then
 | 
			
		||||
    if _contains "$(curl --help http 2>&1)" "--fail-with-body"; then
 | 
			
		||||
      _ACME_CURL="$_ACME_CURL --fail-with-body "
 | 
			
		||||
    fi
 | 
			
		||||
  fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user