Skip to content

Commit

Permalink
Camel catalog recent commits no need for this anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Nov 11, 2015
1 parent 08f5314 commit f4e95d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -761,8 +761,6 @@ private String doAsEndpointUri(String scheme, Map<String, String> properties, St
// the last option may already contain a ? char, if so we should use & instead of ?
sb.append(hasQuestionmark ? ampersand : '?');
String query = createQueryString(copy, ampersand, encode);
// we do not want to use %23 for # syntax
query = query.replaceAll("\\=\\%23", "=#");
sb.append(query);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ public void testAsEndpointUriBeanLookup() throws Exception {
map.put("converter", "#myConverter");

String uri = catalog.asEndpointUri("xslt", map, true);
assertEquals("xslt:foo.xslt?converter=%23myConverter", uri);

uri = catalog.asEndpointUri("xslt", map, false);
assertEquals("xslt:foo.xslt?converter=#myConverter", uri);
}

Expand Down

0 comments on commit f4e95d1

Please # to comment.