Attaching stdin #387
Unanswered
peter-facko
asked this question in
Q&A
Replies: 1 comment
-
Just after posting the question I randomly tried setting: headers={"Content-Length": "0"} and it seems to work. I will keep the discussion open because I am not yet sure I got it right and maybe someone has something to add to this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to attach stdin to a container.
I am using this code:
This works well, but when I change
data
to an iterable or stdin, the resulting file contains these weird prefix and suffix lines:Created with
yes | head
:I understand that the first number is somehow connected to the input length and the number at the end seems to always be zero.
Does anyone have any solution to this?
Beta Was this translation helpful? Give feedback.
All reactions