Fixed error in django logging middleware, caused by absent Content-Type header in DELETE responses from django-rest-framework.