Skip to content

Commit

Permalink
fix race condition in image rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed Dec 18, 2012
1 parent 760f176 commit 99f2cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/package_controller.rb
Expand Up @@ -120,7 +120,7 @@ def image pkgname, type, default_url
response.headers['Content-Type'] = 'image/png'
response.headers['Content-Disposition'] = 'inline'
render :text => content, :content_type => 'image/png'
cache_page
cache_page unless path
FileUtils.ln_sf( default_url, path ) if path
end

Expand Down

0 comments on commit 99f2cde

Please sign in to comment.