Skip to content

Commit

Permalink
Store the actual PAC script
Browse files Browse the repository at this point in the history
Library users may be just interested in using the library for the ease of obtaining the PAC js, instead of trying to evaluate a proxy in-situ. For example, if the PACScript needs to be serialized to be sent to another process.
  • Loading branch information
KarelChanivecky authored May 5, 2023
1 parent 7f93bbf commit 1aeff9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pypac/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def __init__(self, pac_js, **kwargs):

except dukpy.JSRuntimeError as e:
raise MalformedPacError(original_exc=e) # from e
self.js = pac_js

def find_proxy_for_url(self, url, host):
"""
Expand Down

0 comments on commit 1aeff9c

Please sign in to comment.