rull commited on
Commit
1f93e9f
·
verified ·
1 Parent(s): e8e1930

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def proxy():
30
  )
31
  content = response.content
32
  if 'text/html' in response.headers.get('content-type', ''):
33
- soup = BeautifulSoup(response.content, 'html.parser')
34
  for tag in soup.find_all(href=True):
35
  tag['href'] = '/proxy?url=' + tag['href']
36
  for tag in soup.find_all(src=True):
 
30
  )
31
  content = response.content
32
  if 'text/html' in response.headers.get('content-type', ''):
33
+ soup = BeautifulSoup(response.text, 'html.parser')
34
  for tag in soup.find_all(href=True):
35
  tag['href'] = '/proxy?url=' + tag['href']
36
  for tag in soup.find_all(src=True):