[Issue #1398] Setting Content-Length after setting request stream