raidenyn / yandexdisk.client

Yandex Disk API Client for .NET
MIT License
41 stars 14 forks source link

Not woking With MediaType Property #11

Closed hepter closed 5 years ago

hepter commented 5 years ago

An error occurs because "media_type" went with double quotes while creating the request. I myself have solved the problem in a primitive way but maybe you can to make a more elegant solution for other users. GetUrl => MvcSerializer.Serialize (); quotes generated after generating code causes error

raidenyn commented 5 years ago

@hepter Yandex.Disk docs suggest me to use double quotes. As I remember it should work, but let me check it one more time.

raidenyn commented 5 years ago

Yes, you are right. It's not working with quotes now. I'll fix the request soon.

raidenyn commented 5 years ago

Fixed in https://github.com/raidenyn/yandexdisk.client/commit/ef598ad44d5594cacf2abbd1b2c4d7e8845e15de

Release version: v1.3.21