327
327
var media_type = response.getResponseHeader('Content-Type');
328
328
if (media_type.substring(0,16) === 'application/json') {
329
329
representation = Y.JSON.parse(response.responseText);
332
336
wrapped = client.wrap_resource(uri, representation);
333
337
result = old_on_success(wrapped);