We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e07559d commit 4c49a65Copy full SHA for 4c49a65
lib/AnyEvent/HTTP/Server.pm
@@ -113,8 +113,8 @@ sub DESTROY { $_[0]->destroy };
113
114
sub set_favicon {
115
my $self = shift;
116
- if (shift) {
117
- my $icondata = shift;
+ my $icondata = shift;
+ if ($icondata) {
118
$self->{ico} = "HTTP/1.1 200 OK${LF}Connection:close${LF}Content-Type:image/x-icon${LF}Content-Length:".length($icondata)."${LF}${LF}".$icondata;
119
}
120
else {
0 commit comments