浏览代码

suppress warnings

George S. Baugh 5 年之前
父节点
当前提交
46b166670d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      www/server.psgi

+ 1 - 1
www/server.psgi

@@ -101,7 +101,7 @@ my $app = sub {
     }
 
     # If it's just a file, serve it up
-    my $alist = $env->{HTTP_ACCEPT_ENCODING};
+    my $alist = $env->{HTTP_ACCEPT_ENCODING} || '';
     $alist =~ s/\s//g;
     my @accept_encodings;
     @accept_encodings = split(/,/, $alist);