html - Railo 4.2 content type in return header becomes text/xml -
my problem here quite confusing me, though fear reply simple unable find
i using railo 4.2 @ moment. setting decently old webpage customer
in many cases have links like
/filename.cfc?method=dosomething
no matter returned, returns content-type : text/xml
i have added seems chosen xml before looking @ that.
<cffunction name="needhelp" access="remote" output="true" produces="text/html"> <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body>help!</body></html> </cffunction>
the code above seems simple enough, gives error due not formed xml.
just create things strange:
<cffunction name="needhelp" access="remote" output="true" produces="text/html"> <cfset setlocale('no_no')> <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body>help!</body></html> </cffunction>
this code works think should. returns text/html.
i cant understand why happens, have lead seek check? :)
html xml coldfusion railo
No comments:
Post a Comment