http: negative/invalid Content-Length raises exception