When using htmlmin.middleware.MarkRequestMiddleware for Django, in some view, for example,
return HttpResponse("1") will result in <html><head></head><body>1</body></html>, but without htmlmin.middleware.MarkRequestMiddleware it will be just 1.
Why is html added when I do not want it?
When using
htmlmin.middleware.MarkRequestMiddlewarefor Django, in some view, for example,return HttpResponse("1")will result in<html><head></head><body>1</body></html>, but withouthtmlmin.middleware.MarkRequestMiddlewareit will be just1.Why is html added when I do not want it?