mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 23:22:26 -05:00 
			
		
		
		
	[bugfix] retry on http 500 errors *inclusive* (#2886)
This commit is contained in:
		
					parent
					
						
							
								ec334ece20
							
						
					
				
			
			
				commit
				
					
						ec7c983e46
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -339,7 +339,7 @@ func (c *Client) do(r *Request) (rsp *http.Response, retry bool, err error) { | ||||||
| 		// A retryable error. | 		// A retryable error. | ||||||
| 		return nil, true, err | 		return nil, true, err | ||||||
| 
 | 
 | ||||||
| 	} else if rsp.StatusCode > 500 || | 	} else if rsp.StatusCode >= 500 || | ||||||
| 		rsp.StatusCode == http.StatusTooManyRequests { | 		rsp.StatusCode == http.StatusTooManyRequests { | ||||||
| 
 | 
 | ||||||
| 		// Codes over 500 (and 429: too many requests) | 		// Codes over 500 (and 429: too many requests) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue