diff options
author | Micha Rautenberg <mr@mrautenberg.de> | 2016-09-09 15:51:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-09 15:51:57 +0200 |
commit | f61c3599cc4c624f72f47d595f61a512d84e2866 (patch) | |
tree | 6f11b94e1353e709ba2e48fb58e111ce9a2d5a3e | |
parent | f35a14628395e0021e55c827c51d203f7274b45c (diff) |
change to .body in RestClient call for image to avoid "no _dump_data is defined memcache.rb"development
-rw-r--r-- | application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb index 78f500d..7fb2d0a 100644 --- a/application.rb +++ b/application.rb @@ -315,7 +315,7 @@ class Application < Sinatra::Base end get '/pug/cid/:cid/image' do - @result = RestClient.get File.join(PUG_URI, "compound", "cid", params[:cid], "PNG") + @result = RestClient.get(File.join(PUG_URI, "compound", "cid", params[:cid], "PNG")).body end get '/pug/cid/:cid1/cosine/:cid2' do |