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,