kothar / go-backblaze

A golang client for Backblaze's B2 storage
MIT License
95 stars 31 forks source link

Pfzero editable content type #10

Closed kothar closed 8 years ago

kothar commented 8 years ago

@pfzero, Building on your changes, I've added new Upload method signatures which allow the caller to specify the contentType. This seems safer, as it will not change the behaviour of any existing users setting X-Bz-Content-Type, unlikely as that may be.

By keeping the metadata to just X-Bz-* values, we don't have to explain the special case behaviour for Content-Type.

Can you check and see if it still accomplishes what you need from #8 ?

ErhanAbi commented 8 years ago

@kothar, Yes this covers the editable contentType field I was looking for (and maybe others). I am going to close the issue #7 .

Thanks for the effort!