jasminsehic / infinity.net

.NET API for Azure DevOps and DevOps Server formerly Visual Studio Online and Team Foundation Server
Other
36 stars 13 forks source link

GetItem returns file contents instead of metadata due to missing header #8

Closed andrewcoll closed 9 years ago

andrewcoll commented 9 years ago

As per the API docs (see here) to get metadata for an item you need to add the Accept: application/json header.

GetItem() on the GitClient doesn't do this, so the file contents are returned instead. This causes an exception when attempting to deserialize the JSON into an object of type Item.