Fixed tests failing on requests without content-length headers