diff --git a/lib/diplomat/lock.rb b/lib/diplomat/lock.rb
index <HASH>..<HASH> 100644
--- a/lib/diplomat/lock.rb
+++ b/lib/diplomat/lock.rb
@@ -21,7 +21,7 @@ module Diplomat
         req.url concat_url url
         req.body = value unless value.nil?
       end
-      raw.body == 'true'
+      raw.body.strip == 'true'
     end
 
     # wait to aquire a lock
Fix lock.acquire return status

Hi !

Thanks for this great gem , and your great work



I just noticed that `raw.body = "true\n"`



This makes `raw.body.strip == 'true'` test always false.

Thus wait_to_acquire never ends looping :)



Thanks !