Skip to content

Commit

Permalink
Merge pull request #12092 from binodmx/master
Browse files Browse the repository at this point in the history
Fix error when websub_event_receiver not defined for vhost
  • Loading branch information
binodmx committed Jul 31, 2023
2 parents d1f7dd9 + 389d4e2 commit c58025d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,8 @@ void setEnvironmentConfig(OMElement environmentElem) throws APIManagementExcepti

//Prefix websub endpoints with 'websub_' so that the endpoint URL
// would begin with: 'websub_http://', since API type is identified by the URL protocol below.
webSubHttpEp = "websub_" + webSubHttpEp;
webSubHttpsEp = "websub_" + webSubHttpsEp;
webSubHttpEp = StringUtils.isNotBlank(webSubHttpEp) ? "websub_" + webSubHttpEp : webSubHttpEp;
webSubHttpsEp = StringUtils.isNotBlank(webSubHttpsEp) ? "websub_" + webSubHttpsEp : webSubHttpsEp;

VHost vhost = VHost.fromEndpointUrls(new String[]{
httpEp, httpsEp, wsEp, wssEp, webSubHttpEp, webSubHttpsEp});
Expand Down

0 comments on commit c58025d

Please sign in to comment.