Fixing content-length exception