summaryrefslogtreecommitdiff
path: root/libpiny/lib
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2011-04-15 20:10:17 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2011-04-15 20:10:17 -0700
commit4ceaa9877f62c23e2d2e95c621fc51d1a656d7c5 (patch)
tree929ea86d8dd799edaec307bf1122aba1efc1189e /libpiny/lib
parente9565a945cb9dfafb39d3aa92e89216f2c1d356c (diff)
downloadpiny-code-4ceaa9877f62c23e2d2e95c621fc51d1a656d7c5.tar.gz
piny-code-4ceaa9877f62c23e2d2e95c621fc51d1a656d7c5.zip
Making httpurl constraint also allow https urls
Diffstat (limited to 'libpiny/lib')
-rw-r--r--libpiny/lib/Piny/Config.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpiny/lib/Piny/Config.pm b/libpiny/lib/Piny/Config.pm
index 5cd99da..718af5c 100644
--- a/libpiny/lib/Piny/Config.pm
+++ b/libpiny/lib/Piny/Config.pm
@@ -35,8 +35,8 @@ subtype 'PathDir'
subtype 'HttpUrl'
=> as 'Str'
- => where { $_ =~ /^http:\/\//i }
- => message { 'Not a http:// URL.' }
+ => where { $_ =~ /^(http|https):\/\//i }
+ => message { 'Not a http:// or https:// URL.' }
;
subtype 'HttpsUrl'