Closed kellymclaughlin closed 7 years ago
On further inspection I notice that createWriteStream
always uses chunked encoding and therefore specifying a Content-Length
header is not appropriate. Instead I'll look at changing the muskie tests to use put
instead.
The
client
module'screateWriteStream
function does not honor the size option unlike theput
function.I ran into this running the muskie test suite in my manta test environment. Many of the
PUT
tests were returning a507 NotEnoughSpace
error despite the modest size of the test payloads and plenty of free space on my Manta system. Looking at the log output from muskie showed that there was noContent-Length
header provided causing this problem. It appears that the muskie tests do intend to set this header based on these two implementations ofwriteObject
: ac.test.js and auth.test.js