Revert "Merge pull request #2 from assertis/rest_fix"

This reverts commit 450646edb69f7f54940f980fc0c27d5bb62a7a42, reversing
changes made to 2f13bf6feec6d9fd7e22034f98159b76efe4811a.