From 655302ff7d80f341892fb0ccbdb5aeae9a95186f Mon Sep 17 00:00:00 2001 From: Frikky Date: Wed, 17 Apr 2024 17:51:33 +0200 Subject: [PATCH] Fixed timeout bug in PATCH HTTP action --- http/1.4.0/src/app.py | 5 +++++ shuffle-tools/1.2.0/api.yaml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/http/1.4.0/src/app.py b/http/1.4.0/src/app.py index ff2ec91b..865d223e 100755 --- a/http/1.4.0/src/app.py +++ b/http/1.4.0/src/app.py @@ -304,6 +304,11 @@ def PATCH(self, url, headers="", body="", username="", password="", verify=True, else: auth = requests.auth.HTTPBasicAuth(username, password) + if not timeout: + timeout = 5 + if timeout: + timeout = int(timeout) + if to_file == "true": to_file = True else: diff --git a/shuffle-tools/1.2.0/api.yaml b/shuffle-tools/1.2.0/api.yaml index b792959a..a31a363d 100644 --- a/shuffle-tools/1.2.0/api.yaml +++ b/shuffle-tools/1.2.0/api.yaml @@ -282,6 +282,8 @@ actions: required: false multiline: false example: "domains,urls,email_addresses,ipv4s,ipv4_cidrs,ipv6s,md5s,sha256s,sha1s,cves" + value: "domains,urls,ipv4s,md5s,sha1s" + multiselect: true schema: type: string returns: