From 92de7c57f049dc73c6e558801091ddd7729af00c Mon Sep 17 00:00:00 2001 From: "G. Gibson" Date: Sun, 24 Apr 2022 11:53:08 -0700 Subject: [PATCH] debugging download 2 --- Services/www/www/gxg-www.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/www/www/gxg-www.rb b/Services/www/www/gxg-www.rb index 9d786c8..e834598 100644 --- a/Services/www/www/gxg-www.rb +++ b/Services/www/www/gxg-www.rb @@ -1224,7 +1224,7 @@ module GxGwww handle = GxG::SERVICES[:core][:resources].open((temp_dir + "/" + cache_profile[:title]), ::GxG::DB[:administrator]) if handle # download_path = handle[:resource].path() - response = [200, {"content-type" => "application/json"}, ({:result => true, :file_name => cache_profile[:title], :data => handle[:resource].read}).to_json()] + response = [200, {"content-type" => "application/json"}, ({:result => true, :file_name => cache_profile[:title], :data => handle[:resource].read.encode64}).to_json()] GxG::SERVICES[:core][:resources].close(handle[:token]) GxG::SERVICES[:core][:resources].destroy(rtemp_dir, ::GxG::DB[:administrator]) # response = [-255, {"content-type" => "application/hash"}, {:result => {:file => download_path, :vfs_dir => temp_dir}}]