Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
176 Points
56 Posts
Apr 13, 2012 01:21 PM|LINK
If you change your action method to look like this, then it will stop returning your string as application/json and return it as text/plain.
public HttpResponseMessage Get() { ... return new HttpResponseMessage() { Content = new StringContent(container.Uri.AbsoluteUri) }; }
Darrel Mille...
Member
176 Points
56 Posts
Re: Get() return string with backslashes
Apr 13, 2012 01:21 PM|LINK
If you change your action method to look like this, then it will stop returning your string as application/json and return it as text/plain.
public HttpResponseMessage Get() { ... return new HttpResponseMessage() { Content = new StringContent(container.Uri.AbsoluteUri) }; }