[phantomjs] Fix bug in 8b7539d27c

Closes #3066
This commit is contained in:
pukkandan 2022-03-14 16:10:37 +05:30
parent b3edc8068e
commit aeb21b98f1
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ class PhantomJSwrapper(object):
replaces = self.options
replaces['url'] = url
user_agent = headers.get('User-Agent') or self.get_param('http_headers')['User-Agent']
user_agent = headers.get('User-Agent') or self.extractor.get_param('http_headers')['User-Agent']
replaces['ua'] = user_agent.replace('"', '\\"')
replaces['jscode'] = jscode