From 601c7a0be6fc979c2dad882ed37df3fd4f13699b Mon Sep 17 00:00:00 2001 From: Pablo Fernandez Date: Fri, 20 Apr 2012 15:18:34 -0300 Subject: [PATCH] Handle response all non-error http response codes. --- src/retina_image_path.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/retina_image_path.coffee b/src/retina_image_path.coffee index 5747a57..8be8d74 100644 --- a/src/retina_image_path.coffee +++ b/src/retina_image_path.coffee @@ -40,7 +40,7 @@ class RetinaImagePath # If we get an A-OK from the server, # push file path onto array of confirmed files - if http.status is 200 + if http.status in [200..399] RetinaImagePath.confirmed_paths.push @at_2x_path return true else