-
Notifications
You must be signed in to change notification settings - Fork 168
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
How to set text/html instead of text/plain? #59
Comments
mime types are not related to dtl and templates i think. |
Originally it was your example/template of n2o-application named 'skyline'. If I use your prod.dtl as template all works fine. If I set newly created login.dtl mime type is broken. I did not any changes to cowboy dispatch rules and I do not know where is it. |
Ok, I find in web_sup.erl dispatch_rules() but I did not change it. |
Если я пропатчу wf_core:run() вот так:
То, mime насильно устанавливается в text/html, то переменная transition не появляется в рамках выполнения js в броузере. |
Нашел в полученной странице следующий код:
var transition = {pid: 'g2gCZ2QAEXNreWxpbmVAMTI3LjAuMC4xAAAFPQAAAAABaANiAAAFdGIACWrzYgAEt9s=', port:'8000'}
Одной проблемой меньше, но mime кроме грязного хака я не знаю как починить. :(
|
Я не наблюдаю установку mime type. Request URL:http://localhost:8000/ Response Headers И еще: заменил login.dtl на prod.dtl и mime заработал. |
проверил у себя, все таки оно автоматически определяет mime type, все что это внутри < html >< /html > должно быть text\html автоматически. |
Можешь показать свой конфиг ? |
у меня девалтный конфиг. твой новый шаблон содержит html? можешь дать мне этот шаблон? |
Улетело почтой. |
Н-да. Причина оказалась в BOM: Куда наливать ? |
Version: HEAD.
DTL: 0.8.0
I created new another template. It's rendered normally. But something set text/plain mime type. What do I wrong ?
The text was updated successfully, but these errors were encountered: