Skip to content

Commit

Permalink
Make 520 status code retryable (#1935)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas authored Feb 21, 2024
1 parent 9e30a13 commit 74c6974
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ var retryableHTTPStatusCodes = map[int]struct{}{
http.StatusBadGateway: {},
http.StatusServiceUnavailable: {},
http.StatusGatewayTimeout: {},
520: {}, // It is used by Cloudflare as a catch-all response for when the origin server sends something unexpected.
// Add more HTTP status codes here.
}

Expand Down

0 comments on commit 74c6974

Please sign in to comment.