'Add additional headers for service bus.'

def _update_service_bus_header(self, request):

    if (request.method in ['PUT', 'POST', 'MERGE', 'DELETE']):
        request.headers.append(('Content-Length', str(len(request.body))))
    if (not (request.method in ['GET', 'HEAD'])):
        for (name, _) in request.headers:
            if ('content-type' == name.lower()):
                break
        else:
            request.headers.append(('Content-Type', 'application/atom+xml;type=entry;charset=utf-8'))
    self.authentication.sign_request(request, self._httpclient)
    return request.headers
