Testing 3

This commit is contained in:
G. Gibson 2022-04-22 10:33:18 -07:00
parent 0f8c943e41
commit 9a5339e7f0

View file

@ -1223,11 +1223,17 @@ module GxGwww
download_path = handle[:resource].path()
GxG::SERVICES[:core][:resources].close(handle[:token])
response = [-255, {"content-type" => "application/hash"}, {:result => {:file => download_path, :vfs_dir => temp_dir}}]
else
raise "Failed to get cache profile."
end
else
response = [500, {"content-type" => "application/json"}, ({:result => false, :error => "Failed to cache file."}).to_json()]
end
else
response = [403, {"content-type" => "application/json"}, ({:result => false, :error => "You don't have read access."}).to_json()]
end
else
raise "Failed to get profile."
end
#
end