mirror of
https://github.com/mistergibson/gxg-server.git
synced 2026-08-15 02:15:59 -07:00
debugging download 3
This commit is contained in:
parent
92de7c57f0
commit
cc1d0afd4e
1 changed files with 1 additions and 1 deletions
|
|
@ -1226,7 +1226,7 @@ module GxGwww
|
|||
# download_path = handle[:resource].path()
|
||||
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])
|
||||
GxG::SERVICES[:core][:resources].destroy(temp_dir, ::GxG::DB[:administrator])
|
||||
# response = [-255, {"content-type" => "application/hash"}, {:result => {:file => download_path, :vfs_dir => temp_dir}}]
|
||||
else
|
||||
raise "Failed to get cache profile."
|
||||
|
|
|
|||
Loading…
Reference in a new issue