Skip to content

Commit

Permalink
[Fix bug](#908) (#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
sherl0ckLiu authored Jun 28, 2022
1 parent 2353c81 commit 02d36df
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ public void notify(List<URL> urls) {
for (URL url : urls) {
String category = url.getUrlParam().getParameter(Constants.CATEGORY_KEY);
if (category == null) {
category = Constants.PROVIDERS_CATEGORY;
// Assign an initial value to category according to the information in url
if (Constants.CONSUMER_SIDE.equals(url.getSide()) || Constants.CONSUMER_PROTOCOL.equals(url.getProtocol())) {
category = Constants.CONSUMERS_CATEGORY;
} else {
category = Constants.PROVIDERS_CATEGORY;
}
}
// NOTE: group and version in empty protocol is *
if (Constants.EMPTY_PROTOCOL.equalsIgnoreCase(url.getProtocol())) {
Expand Down

0 comments on commit 02d36df

Please sign in to comment.