Open schostac opened 4 years ago
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.
htmlmin.middleware.MarkRequestMiddleware
return HttpResponse("1")
<html><head></head><body>1</body></html>
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 .
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 withouthtmlmin.middleware.MarkRequestMiddleware
it will be just1
.Why is html added when I do not want it?