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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.