Have query param support both "foo=" and "foo" forms, close #1216