Update app.py
Browse files
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.
|
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):
|