Permalink
Browse files

Only one part required if we provide a bucket.

  • Loading branch information...
1 parent 665bcac commit b7843c133b949697ced260ef9f0891aa282efc2a @elliotcm committed Apr 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sizeable/app.rb
View
@@ -39,7 +39,7 @@ def parse_request(env)
parts = request.path_info.split('/').reject{|str| str.nil? or str == ''}
- raise NoSuchImageException if parts.length < 2
+ raise NoSuchImageException if parts.length < 2 unless preset_s3_bucket
s3_bucket = preset_s3_bucket || parts.shift

0 comments on commit b7843c1

Please sign in to comment.