Closed nitzo closed 12 years ago
Hello,
When body is an object (try get 'me/picture') this function returns null. The reason for this is typeof(body === 'string) is a boolean since body==='string' and typeof(true) is boolean.
The statement needs to be:
var json = typeof body === 'string' ? null : body
Nitzan Bar
Nice!
Hello,
When body is an object (try get 'me/picture') this function returns null. The reason for this is typeof(body === 'string) is a boolean since body==='string' and typeof(true) is boolean.
The statement needs to be:
Nitzan Bar