git updates

fixes error like: error: RPC failed; result=22, HTTP code = 411

continuing the #215
Merge pull request #240 from huglester/patch-2

git updates