Fix parsing when starting in header or query.