From 26dcf310dc70cd25ad80249edf895560dec8f72f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 3 Nov 2017 16:45:01 +0100 Subject: T281: Validate error codes for 'http' and 'https' --- scripts/vyatta-load-config.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3