'Add additional headers for management.'

def _update_management_header(self, request):

    if (request.method in ['PUT', 'POST', 'MERGE', 'DELETE']):
        request.headers['Content-Length'] = str(len(request.body))
    if (request.method not in ['GET', 'HEAD']):
        for key in request.headers:
            if ('content-type' == key.lower()):
                break
        else:
            request.headers['Content-Type'] = 'application/xml'
    return request.headers
