Skip to content

Commit

Permalink
Make 520 status code retryable
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas committed Feb 15, 2024
1 parent 15213d3 commit 7ff7ab9
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 7ff7ab9

Please sign in to comment.