TritonDataCenter / node-manta

Node.js SDK for Manta
75 stars 54 forks source link

client should send content-length header when uploading part from file #345

Open jordanhendricks opened 6 years ago

jordanhendricks commented 6 years ago

When doing an MPU uploadPart from a local file, the client already has the size of the file. As such, we should send a content-length header for these requests. Otherwise, muskie will reject parts that exceed the default streaming PUT size, which is a frustrating failure on the client end.