Skip to content

Commit

Permalink
fix issue where beaconCollectionDomain wouldn't work correctly (#325) (
Browse files Browse the repository at this point in the history
…#326)

Fixes
 - fix issue where beaconCollectionDomain wouldn't work correctly (fix issue where beaconCollectionDomain wouldn't work correctly #325)
  • Loading branch information
jsanford8 authored Sep 7, 2023
1 parent dd4f951 commit f413302
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,13 @@ private static byte[] gzip(byte[] input) throws Exception {
* @return backend url.
*/
private String getAuthority(String propertykey, String domain) {
// In the case that a customer used beaconCollectionDomain, there
// won't be a `.` prepended.
// TODO: Next major version bump, we should fix this API to be a bit
// more clean.
if (!domain.startsWith(".")) {
return domain;
}
if (Pattern.matches("^[a-z0-9]+$", propertykey)) {
return propertykey + domain;
}
Expand Down

0 comments on commit f413302

Please sign in to comment.