Skip to content

Commit

Permalink
Use faster read method
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Mar 14, 2020
1 parent 9b2022f commit 6559161
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions unauthenticated/icons.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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");

0 comments on commit 6559161

Please sign in to comment.