tee input should not read more than content-length