Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
To build my robots.txt I need to change the content type. In v7 this was done bij umbraco.library.ChangeContentType("text/plain"); But how to go about it in v8?
Thanks!
are you talking about setting the mimetype of the response?
https://stackoverflow.com/questions/7509266/setting-mime-type-in-asp-net
Try: Response.ContentType = "text/plain";
And in Umbraco 9+:
Context.Response.ContentType ="text/plain";
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
uChangeContentType in v8
To build my robots.txt I need to change the content type. In v7 this was done bij umbraco.library.ChangeContentType("text/plain"); But how to go about it in v8?
Thanks!
are you talking about setting the mimetype of the response?
https://stackoverflow.com/questions/7509266/setting-mime-type-in-asp-net
Try: Response.ContentType = "text/plain";
And in Umbraco 9+:
is working on a reply...