microsoft / kiota-abstractions-go

Abstractions library for the Kiota generated SDKs in go
https://aka.ms/kiota/docs
MIT License
11 stars 10 forks source link

Allow User to Set Content Stream Via Headers #176

Open rkodev opened 2 months ago

rkodev commented 2 months ago

As pointed out in this issue , Users maybe be forced to update the Content-Type to a specific content type i,e an service can restrict the upload type to images only as opposed to octet-stream, Current suggestion is to add a TrySetStreamContentAndContentType that will respect existing content stream in the headers and only set it IFF it does not exist