Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected html #139

Open
schostac opened this issue Nov 20, 2019 · 1 comment
Open

Unexpected html #139

schostac opened this issue Nov 20, 2019 · 1 comment

Comments

@schostac
Copy link

schostac commented Nov 20, 2019

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?

@KeithPYC
Copy link

KeithPYC commented Jan 16, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants