Hello I’m trying to handle server response which in my case is a JSON string with some additional information.
Unfortunately the event.args.response contains my expected response string wrapped with some HTML code
For example I was expecting:
‘{“bp”:”2″,”contentType”:”image\/png”,”fileName”:”works-on-my-machine-starburst.png”,”size”:30255}’
but response is:
‘<pre style=”word-wrap: break-word; white-space: pre-wrap;”>{“bp”:”2″,”contentType”:”image\/png”,”fileName”:”works-on-my-machine starburst.png”,”size”:30255}’
Is this intentional or a bug ?
Also whichever HTTP response status I set in my server side it seems to be ignored and nowhere visible I’d like to know if it was HTTP OK 200 or not.