Skip to content

Commit b3ed05c

Browse files
Add headers to public call
1 parent 4476ac5 commit b3ed05c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detection_rules/ghwrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def update_gist( # noqa: PLR0913
109109

110110
if pre_purge:
111111
# retrieve all existing file names which are not in the file_map and overwrite them to empty to delete files
112-
response = requests.get(url, timeout=30)
112+
response = requests.get(url, headers=headers, timeout=30)
113113
response.raise_for_status()
114114
data = response.json()
115115
files = list(data["files"])

0 commit comments

Comments
 (0)