HTTP handler removing any query string before comparisons