fix for wrong response while accessing REST api
Merge pull request #6 from yourvine/subtask/CLI-125

fix for wrong response while accessing REST api