Skip to content

Commit

Permalink
Merge pull request #28 from intelowlproject/develop
Browse files Browse the repository at this point in the history
1.3.5
  • Loading branch information
mlodic authored Sep 2, 2020
2 parents c4a8b9d + d22f49d commit 7c03f83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions pyintelowl/pyintelowl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import requests
import sys

from json import dumps as json_dumps

from .exceptions import IntelOwlClientException
from .token_auth import APIToken

Expand All @@ -28,7 +30,7 @@ def session(self):
session.headers.update(
{
"Authorization": "Token {}".format(str(self.token)),
"User-Agent": "IntelOwlClient/1.3.4",
"User-Agent": "IntelOwlClient/1.3.5",
}
)
self._session = session
Expand Down Expand Up @@ -87,7 +89,7 @@ def send_file_analysis_request(
"file_name": filename,
}
if runtime_configuration:
data["runtime_configuration"] = runtime_configuration
data["runtime_configuration"] = json_dumps(runtime_configuration)
files = {"file": (filename, binary)}
url = self.instance + "/api/send_analysis_request"
response = self.session.post(url, data=data, files=files)
Expand Down Expand Up @@ -128,7 +130,7 @@ def send_observable_analysis_request(
),
}
if runtime_configuration:
data["runtime_configuration"] = runtime_configuration
data["runtime_configuration"] = json_dumps(runtime_configuration)
url = self.instance + "/api/send_analysis_request"
response = self.session.post(url, data=data)
logger.debug(response.url)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# This call to setup() does all the work
setup(
name="pyintelowl",
version="1.3.4",
version="1.3.5",
description="Client and Library for Intel Owl",
long_description=README,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 7c03f83

Please sign in to comment.