django-htmlmin icon indicating copy to clipboard operation
django-htmlmin copied to clipboard

Unexpected html

Open schostac opened this issue 6 years ago • 1 comments

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?

schostac avatar Nov 20 '19 20:11 schostac

I am also experiencing this whenever i use custom template tags or filters before the opening -body- tag .

KeithPYC avatar Jan 16 '20 05:01 KeithPYC