Updated lib to add content-length