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

使用art-template之后,在koa中使用ctx.set设置Content-type不生效了 #5

Open
marcellowy opened this issue Dec 11, 2018 · 2 comments

Comments

@marcellowy
Copy link

为什么输出的一定要是html?

@aui
Copy link
Collaborator

aui commented Dec 12, 2018

它只是负责输出字符串,不会更改你的 type,你可以自己检查下其他环节是否出了问题

@jin-kendo
Copy link

在koa-art-template index.js 中有 ctx.type = 'html'; 这么一句

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

3 participants