Skip to content

Commit

Permalink
Merge pull request #46 from azuax/main
Browse files Browse the repository at this point in the history
Read HEADERS configuration from config.py
  • Loading branch information
dolevf authored Sep 30, 2024
2 parents 701e4c1 + 5cd734e commit c29656d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.py
100644 → 100755
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 c29656d

Please sign in to comment.