added content-length http header field to response method