lib/orchestration/docker_healthcheck.rb in orchestration-0.5.4 vs lib/orchestration/docker_healthcheck.rb in orchestration-0.5.5
- old
+ new
@@ -38,10 +38,10 @@
request.get(ENV.fetch('WEB_HEALTHCHECK_PATH') { '/' })
end
end
def success_codes
- ENV.fetch('WEB_HEALTHCHECK_SUCCESS_CODES', '200,202,204').split(',')
+ ENV.fetch('WEB_HEALTHCHECK_SUCCESS_CODES', '200,201,202,204').split(',')
end
def success?(code)
success_codes.include?(code.to_s)
end