You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
what is your scenario for submitting the contentType to weed?
Since an array can be passed to the write function, the general options which are appended as querystring to be send to weed are the wrong place. A cleaner solution would be to pass an object instead of a plain buffer like so:
Sometime needs direct assign of content-type when write file to seaweedfs.
To do this - simply change line https://github.com/atroo/node-weedfs/blob/master/lib/weedfs.js#L83:
to:
And this allowed assign content-type like this:
The text was updated successfully, but these errors were encountered: