--- AnyEvent-HTTP/HTTP.pm 2013/09/09 21:41:43 1.117 +++ AnyEvent-HTTP/HTTP.pm 2013/11/18 01:01:02 1.118 @@ -823,7 +823,7 @@ # the key to use in the keepalive cache my $ka_key = "$uscheme\x00$uhost\x00$uport\x00$arg{sessionid}"; - $hdr{connection} = ($persistent ? $keepalive ? "keep-alive " : "" : "close ") . "Te"; #1.1 + $hdr{connection} = ($persistent ? $keepalive ? "keep-alive, " : "" : "close, ") . "Te"; #1.1 $hdr{te} = "trailers" unless exists $hdr{te}; #1.1 my %state = (connect_guard => 1);