Commit 66e22e3a authored by Nigel Kukard's avatar Nigel Kukard

Make sure connection is defined

parent c272f7b8
......@@ -294,7 +294,8 @@ sub server_request
}
# Support for HTTP/1.1 "Connection: close" header...
if ($request->header('Connection') eq "close") {
my $connection = $request->header('Connection');
if (defined($connection) && $connection eq "close") {
$closeWhenDone = 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment