Fix coverity bugs in module httpservices