diff options
author | Jochen Topf <jochen@topf.org> | 2010-11-09 17:24:10 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2010-11-09 17:24:10 +0100 |
commit | 9e5c1e0f8918b1c8a834bb45a55f879da17e24b2 (patch) | |
tree | 86aa8f8b8cd1b81d890adb040be1bad9a6322e7b | |
parent | 1ae506dfbf242e818f0bbdc1ff9c08c35dc209ca (diff) | |
download | taginfo-9e5c1e0f8918b1c8a834bb45a55f879da17e24b2.tar taginfo-9e5c1e0f8918b1c8a834bb45a55f879da17e24b2.tar.gz |
cleanup/using send_file
-rw-r--r-- | web/lib/ui/sources/potlatch.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/ui/sources/potlatch.rb b/web/lib/ui/sources/potlatch.rb index 91afe84..a581c16 100644 --- a/web/lib/ui/sources/potlatch.rb +++ b/web/lib/ui/sources/potlatch.rb @@ -35,9 +35,9 @@ class Taginfo < Sinatra::Base erb :'sources/potlatch/feature', :layout => false end - get %r{/sources/potlatch/icon/(.*)} do + get %r{/sources/potlatch/icon/(.*)} do |icon| content_type :png - IO.read('../../var/sources/potlatch/resources/' + params[:captures].first) + send_file('../../var/sources/potlatch/resources/' + icon) end end |