Skip to content

Commit 1b26bc7

Browse files
Merge pull request #21 from VultureProject/dev
Fix TCP Forwarder Handling (#20)
2 parents 4e3232b + 3723e86 commit 1b26bc7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

darwin/darwinapi.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,11 @@ def low_level_call(self, **kwargs):
222222

223223
darwin_header = kwargs.get("header", None)
224224
darwin_data = kwargs.get("data", None)
225-
darwin_body = json.dumps(darwin_data)
225+
#
226+
# The 'indent' parameter is set to add '\n' in the json.
227+
# For more details, please see l.274.
228+
#
229+
darwin_body = json.dumps(darwin_data, indent=2)
226230

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

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

253257
else:
254258
darwin_header.body_size = 0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="darwin",
5-
version="1.2",
5+
version="1.2.1",
66
description="Call Darwin with your Python code!",
77
url="https://github.com/VultureProject/darwin-client-python",
88
author="Guillaume Catto",

0 commit comments

Comments
 (0)