Fixing issue with Content-Length header being sent as integer