Skip to content

Commit

Permalink
Explicitly set stream end=false when not set to true.
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyscottweber committed Aug 20, 2019
1 parent 6fb34b4 commit ba1eba4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions winrm/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,8 @@ def send_command_input(self, shell_id, command_id, stdin_input, end=False):
stdin_envelope['@Name'] = 'stdin'
if end:
stdin_envelope['@End'] = "true"
else:
stdin_envelope['@End'] = "false"
stdin_envelope['@xmlns:rsp'] = 'http://schemas.microsoft.com/wbem/wsman/1/windows/shell'
stdin_envelope['#text'] = base64.b64encode(stdin_input)
self.send_message(xmltodict.unparse(req))
Expand Down

0 comments on commit ba1eba4

Please sign in to comment.