Fix http query parser