I believe the Content-type is what is breaking it more so than the Content-Length.