dimer47 / node-ovh-objectstorage

Creative Commons Attribution Share Alike 4.0 International
13 stars 11 forks source link

content-type header in putStream #28

Closed franz-geiser closed 2 years ago

franz-geiser commented 2 years ago

Right now it's not possible to set content-type when uploading a Stream but this param is set by default to application/octet-stream. Would be nice to be able to set this parameter. I tried to push a pull request but didn't work out.

in OVHStorage.js

`
Object.assign(headers, { 'X-Auth-Token': this.token, 'Accept': 'application/json' });

if (!headers['content-type']) headers['content-type'] = 'application/octet-stream'

`

franz-geiser commented 2 years ago

was a wrong issue, my fault, sorry.