Skip to content

Commit 7c03f83

Browse files
authored
Merge pull request #28 from intelowlproject/develop
1.3.5
2 parents c4a8b9d + d22f49d commit 7c03f83

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pyintelowl/pyintelowl.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import requests
55
import sys
66

7+
from json import dumps as json_dumps
8+
79
from .exceptions import IntelOwlClientException
810
from .token_auth import APIToken
911

@@ -28,7 +30,7 @@ def session(self):
2830
session.headers.update(
2931
{
3032
"Authorization": "Token {}".format(str(self.token)),
31-
"User-Agent": "IntelOwlClient/1.3.4",
33+
"User-Agent": "IntelOwlClient/1.3.5",
3234
}
3335
)
3436
self._session = session
@@ -87,7 +89,7 @@ def send_file_analysis_request(
8789
"file_name": filename,
8890
}
8991
if runtime_configuration:
90-
data["runtime_configuration"] = runtime_configuration
92+
data["runtime_configuration"] = json_dumps(runtime_configuration)
9193
files = {"file": (filename, binary)}
9294
url = self.instance + "/api/send_analysis_request"
9395
response = self.session.post(url, data=data, files=files)
@@ -128,7 +130,7 @@ def send_observable_analysis_request(
128130
),
129131
}
130132
if runtime_configuration:
131-
data["runtime_configuration"] = runtime_configuration
133+
data["runtime_configuration"] = json_dumps(runtime_configuration)
132134
url = self.instance + "/api/send_analysis_request"
133135
response = self.session.post(url, data=data)
134136
logger.debug(response.url)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# This call to setup() does all the work
1111
setup(
1212
name="pyintelowl",
13-
version="1.3.4",
13+
version="1.3.5",
1414
description="Client and Library for Intel Owl",
1515
long_description=README,
1616
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)