Skip to content

Commit

Permalink
Merge pull request #21 from VultureProject/dev
Browse files Browse the repository at this point in the history
Fix TCP Forwarder Handling (#20)
  • Loading branch information
HugoSoszynski authored Apr 26, 2021
2 parents 4e3232b + 3723e86 commit 1b26bc7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions darwin/darwinapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,11 @@ def low_level_call(self, **kwargs):

darwin_header = kwargs.get("header", None)
darwin_data = kwargs.get("data", None)
darwin_body = json.dumps(darwin_data)
#
# The 'indent' parameter is set to add '\n' in the json.
# For more details, please see l.274.
#
darwin_body = json.dumps(darwin_data, indent=2)

if darwin_header is None:
darwin_header_descr = kwargs.get("header_descr", None)
Expand All @@ -248,7 +252,7 @@ def low_level_call(self, **kwargs):
))

if darwin_body is not None:
darwin_header.body_size = len(darwin_body) + 1 # See l. 270
darwin_header.body_size = len(darwin_body) + 1 # See l. 274

else:
darwin_header.body_size = 0
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="darwin",
version="1.2",
version="1.2.1",
description="Call Darwin with your Python code!",
url="https://github.com/VultureProject/darwin-client-python",
author="Guillaume Catto",
Expand Down

0 comments on commit 1b26bc7

Please sign in to comment.