Fixes usage of prefix as GET param on query request

@benbjohnson