Skip to content

Commit

Permalink
Fix for managing HEADERS variables passed in config.py file
Browse files Browse the repository at this point in the history
  • Loading branch information
azuax committed Sep 30, 2024
1 parent afb7606 commit 5cd734e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ def main():
for header in options.header:
key, value = header.split(": ")
headers[key] = value

# Read configuration headers
for header in conf.HEADERS:
headers[header] = conf.HEADERS[header]

g = GRAPHW00F(follow_redirects=options.followredirect,
headers=headers,
cookies=conf.COOKIES,
Expand Down Expand Up @@ -170,4 +175,4 @@ def main():

if __name__ == '__main__':
main()


0 comments on commit 5cd734e

Please sign in to comment.