fix reply handling
Merge pull request #248 from owncloud/fix-reply

fix reply handling