Subject: | Invalid content-length set for undefined bodies |
In send_frame(), if the $body is undef, then the content-length will be
set to undef as well. (As length(undef)==undef, not zero as you seem to
assume).
This would be the correct way to do it, I think?
$headers->{'content-length'} = length($body) || 0;