mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 02:17:18 +00:00 
			
		
		
		
	fix wget content on 404 error
This commit is contained in:
		
							parent
							
								
									810c129ca9
								
							
						
					
					
						commit
						177b57e1c0
					
				
							
								
								
									
										5
									
								
								acme.sh
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								acme.sh
									
									
									
									
									
								
							| @ -1485,6 +1485,11 @@ _inithttp() { | |||||||
|     fi |     fi | ||||||
|   fi |   fi | ||||||
| 
 | 
 | ||||||
|  |   #from wget 1.14: do not skip body on 404 error | ||||||
|  |   if [ "$_ACME_WGET" ] && _contains "$($_ACME_WGET --help)" "--content-on-error"; then | ||||||
|  |     _ACME_WGET="$_ACME_WGET --content-on-error " | ||||||
|  |   fi | ||||||
|  | 
 | ||||||
|   __HTTP_INITIALIZED=1 |   __HTTP_INITIALIZED=1 | ||||||
| 
 | 
 | ||||||
| } | } | ||||||
|  | |||||||
| @ -36,8 +36,9 @@ dns_gandi_livedns_add() { | |||||||
|   _debug domain "$_domain" |   _debug domain "$_domain" | ||||||
|   _debug sub_domain "$_sub_domain" |   _debug sub_domain "$_sub_domain" | ||||||
| 
 | 
 | ||||||
|   _gandi_livedns_rest PUT "domains/$_domain/records/$_sub_domain/TXT" "{\"rrset_ttl\": 300, \"rrset_values\":[\"$txtvalue\"]}" |   _gandi_livedns_rest PUT "domains/$_domain/records/$_sub_domain/TXT" "{\"rrset_ttl\": 300, \"rrset_values\":[\"$txtvalue\"]}" \ | ||||||
|   _contains "$response" '{"message": "Zone Record Created"}' |   && _contains "$response" '{"message": "Zone Record Created"}' \ | ||||||
|  |   && _info "Add $(__green "success")" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| #Usage: fulldomain txtvalue | #Usage: fulldomain txtvalue | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user