From 493e8a241b7df941a486967c7ebdab686d0803c9 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 29 Oct 2007 18:14:11 +0000 Subject: [PATCH] Cleanup indent --- miniserv.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/miniserv.pl b/miniserv.pl index 02a7c0d6a..6b328683d 100755 --- a/miniserv.pl +++ b/miniserv.pl @@ -1166,8 +1166,12 @@ while(1) { } } if (defined($header{'host'})) { - if ($header{'host'} =~ /^([^:]+):([0-9]+)$/) { $host = $1; $port = $2; } - else { $host = $header{'host'}; } + if ($header{'host'} =~ /^([^:]+):([0-9]+)$/) { + ($host, $port) = ($1, $2); + } + else { + $host = $header{'host'}; + } if ($config{'musthost'} && $host ne $config{'musthost'}) { # Disallowed hostname used &http_error(400, "Invalid HTTP hostname");