django-htmlmin
django-htmlmin copied to clipboard
Unexpected html
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?
I am also experiencing this whenever i use custom template tags or filters before the opening -body- tag .