You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2021/11/09 17:27:46 UTC

[whimsy] branch master updated: Allow wildcard domain

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new be7bdd9  Allow wildcard domain
be7bdd9 is described below

commit be7bdd971f0cc66774f6e7cd939e0daac474bf35
Author: Sebb <se...@apache.org>
AuthorDate: Tue Nov 9 17:27:38 2021 +0000

    Allow wildcard domain
---
 tools/ponyapi.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/ponyapi.rb b/tools/ponyapi.rb
index e134d3d..fef0487 100755
--- a/tools/ponyapi.rb
+++ b/tools/ponyapi.rb
@@ -197,6 +197,8 @@ module PonyAPI
     elsif subdomain.include? '.' # assume full host provided
       domain = subdomain
       subdomain = subdomain.sub(%r{\..*},'') # can't use sub! with CLI arg
+    elsif subdomain == '*' # allow wildcard domain
+      domain = subdomain
     else
       domain = subdomain + '.apache.org'
     end