gurock / testrail-api

TestRail API: Examples on how to use TestRail's API from various languages
Other
116 stars 86 forks source link

Dotnet get_attachments issue #20

Closed Icarrius closed 5 years ago

Icarrius commented 5 years ago

Because of missing slash in StartsWith, get_attachments requests working just like get_attachment - creating file and putting json responce in it, instead of just returning Json responce.

if ((response != null) && ((int)response.StatusCode == 200) && (uri.StartsWith("get_attachment")))

Should be

if ((response != null) && ((int)response.StatusCode == 200) && (uri.StartsWith("get_attachment/")))