diff --git a/src/ozones/Client/lib/OZonesClient.rb b/src/ozones/Client/lib/OZonesClient.rb
index 3641c5319d..bc8294259d 100644
--- a/src/ozones/Client/lib/OZonesClient.rb
+++ b/src/ozones/Client/lib/OZonesClient.rb
@@ -94,7 +94,7 @@ EOT
             
             body_str = ""
             
-            template.strip.each{|line|
+            template.strip.each_line{|line|
                 line.strip!
                 key,value = line.split("=")
                 body_str = body_str + key + "=" + URI.escape(value) + "&"
@@ -261,4 +261,4 @@ EOT
             OZonesClient::Error.new(e.message)
         end
     end
-end
\ No newline at end of file
+end