From 6559161b06234ce65fbc51667be7dc199119fdd3 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 14 Mar 2020 09:07:28 -0700 Subject: [PATCH] Use faster read method --- unauthenticated/icons.cgi | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/unauthenticated/icons.cgi b/unauthenticated/icons.cgi index 1dea66d..1065245 100755 --- a/unauthenticated/icons.cgi +++ b/unauthenticated/icons.cgi @@ -26,9 +26,4 @@ print "Content-length: ",$st[7],"\n"; print "Last-Modified: ",&http_date($st[9]),"\n"; print "Expires: ",&http_date(time()+7*24*60*60),"\n"; print "\n"; -open(my $ICON, "$icons_dir/$icon"); -while(<$ICON>) { - print $_; - } -close($ICON); - +print &read_file_contents("$icons_dir/$icon");