fixing compile error on Ubuntu
adding Content-Length headers for additional resposne types