From daf7cd5a4e2310adf493eb0ff52721e7dd30f40c Mon Sep 17 00:00:00 2001 From: George Ciltaru <> Date: Fri, 22 Oct 2021 15:02:36 -0600 Subject: [PATCH] Fix index zip upload --- lib/akamai/netstorage.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/akamai/netstorage.rb b/lib/akamai/netstorage.rb index 296f0b6..d85c00e 100755 --- a/lib/akamai/netstorage.rb +++ b/lib/akamai/netstorage.rb @@ -76,7 +76,7 @@ def _response(uri, kwargs) return response end - if kwargs[:action] == "upload" + if kwargs[:action].start_with?("upload") begin @request.body = File.read(kwargs[:source]) rescue Exception => e @@ -218,7 +218,7 @@ def upload(local_source, ns_destination, index_zip=false) end action = "upload" if index_zip == true or index_zip.to_s.downcase == "true" - action += "&index-zip=2" + action += "&index-zip=1" end return _request(action: action,