fixed missing queryString assignment

I've noticed http api returns strange error message when I send wrong query.

```
syntax error, unexpected ')'

        ^
```

this pull request improve it.