Fix handling of content-length responces