Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Piped input fails with content-length of 0 #28

Closed
jvallery opened this issue Aug 22, 2018 · 2 comments
Closed

Piped input fails with content-length of 0 #28

jvallery opened this issue Aug 22, 2018 · 2 comments
Assignees

Comments

@jvallery
Copy link

Attempted to pipe input and get 400 error because content-length is zero. Is this a supported scenario?

head -c 1K < /dev/urandom | ./azcopy-v2-linux cp "https://$account/test/file1.dat$token"

untitled

@zezha-msft
Copy link
Contributor

Hi @jvallery, thanks for reaching out!

It is a bug. We changed the default block size to 0, but did not handle it properly for the piping code path. I'll fix it soon.

@zezha-msft
Copy link
Contributor

Fixed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants