diff options
author | Christian Poessinger <christian@poessinger.com> | 2017-11-03 16:45:01 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2017-11-03 16:45:01 +0100 |
commit | 26dcf310dc70cd25ad80249edf895560dec8f72f (patch) | |
tree | 5f4337b0e2fbc67ff5ba86a47b350120c63d94d1 | |
parent | 4caf959577c2b4351ba45f71dcaee55484970430 (diff) | |
download | vyatta-cfg-26dcf310dc70cd25ad80249edf895560dec8f72f.tar.gz vyatta-cfg-26dcf310dc70cd25ad80249edf895560dec8f72f.zip |
T281: Validate error codes for 'http' and 'https'
-rwxr-xr-x | scripts/vyatta-load-config.pl | 2 |
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" |