Title: Setting ContentType on a response Post by: jorgen on September 25, 2013, 02:31:15 PM How can I set ContentType to 'application/json' on the response?
with TRtcDataServer(Sender) do begin if Request.Complete then begin Request.ContentType :='application/json'; Write("ff"); end; end; but this doesn't work Title: Re: Setting ContentType on a response Post by: D.Tkalcec (RTC) on September 25, 2013, 02:49:14 PM TRtcDataServer(Sender).Response.ContentType :=
or TRtcDataServer(Sender).Reponse['Content-Type'] := Best Regards, Danijel Tkalcec Title: Re: Setting ContentType on a response Post by: jorgen on September 25, 2013, 02:56:10 PM Thanks
It worked Jørgen |