Container commited on
Commit
48691a4
·
verified ·
1 Parent(s): 5430983

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,12 +30,12 @@ def chrome(url:str=None,wait:int=5,header:str=None):
30
 
31
  driver = webdriver.Chrome(options=options)
32
 
33
- print(header_list)
34
  try:
35
  if header_list == None:
36
  pass
37
  else:
38
- header_array = json.loads(header_list)
39
  driver.header_overrides = header_array
40
  except ValueError:
41
  driver.quit()
 
30
 
31
  driver = webdriver.Chrome(options=options)
32
 
33
+ print(unquote(header_list))
34
  try:
35
  if header_list == None:
36
  pass
37
  else:
38
+ header_array = json.loads(unquote(header_list))
39
  driver.header_overrides = header_array
40
  except ValueError:
41
  driver.quit()