Merge pull request #849 from wpreul/proxy

Fix typo with client.length
Fixing test