Skip to content

Commit

Permalink
Handling a situation where MM isn't setting the content type.
Browse files Browse the repository at this point in the history
This fixes fredjean#113.
  • Loading branch information
Fred Jean committed Dec 21, 2015
1 parent 594630b commit 89ca0d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/middleman/s3_sync/caching_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def add_caching_policy(content_type, options)
end

def caching_policy_for(content_type)
return default_caching_policy unless content_type
caching_policies.fetch(content_type.to_s.split(';').first.strip, caching_policies[:default])
end

Expand Down

0 comments on commit 89ca0d1

Please sign in to comment.