summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2017-11-03 16:45:01 +0100
committerChristian Poessinger <christian@poessinger.com>2017-11-03 16:45:01 +0100
commit26dcf310dc70cd25ad80249edf895560dec8f72f (patch)
tree5f4337b0e2fbc67ff5ba86a47b350120c63d94d1
parent4caf959577c2b4351ba45f71dcaee55484970430 (diff)
downloadvyatta-cfg-26dcf310dc70cd25ad80249edf895560dec8f72f.tar.gz
vyatta-cfg-26dcf310dc70cd25ad80249edf895560dec8f72f.zip
T281: Validate error codes for 'http' and 'https'
-rwxr-xr-xscripts/vyatta-load-config.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-load-config.pl b/scripts/vyatta-load-config.pl
index de6d9ab..1ffadcd 100755
--- a/scripts/vyatta-load-config.pl
+++ b/scripts/vyatta-load-config.pl
@@ -104,7 +104,7 @@ elsif ( $mode eq 'url' ) {
print "Package [curl] not installed\n";
exit 1;
}
- if ( $proto eq 'http' ) {
+ if ( $proto eq 'http' or $proto eq 'https' ) {
#
# error codes are send back in html, so 1st try a header
# and look for "HTTP/1.1 200 OK"