sintaxi / dbox

NodeJS SDK for Dropbox API (THIS LIBRARY IS OBSOLETE!!)
514 stars 91 forks source link

get gives you a string of the metadata instead of a object #37

Closed jstroem closed 11 years ago

jstroem commented 11 years ago

when using the get function, the metadata parameter to the callback isn't a object but a string. This is because it comes from the headerfield 'x-dropbox-metadata' and that isn't evaluated by request to be a JSON object. so before you can use it you need to do JSON.parse(metadata).

For consistens this should be fixed.