Update app.py
Browse files
app.py
CHANGED
|
@@ -30,6 +30,7 @@ def proxy():
|
|
| 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']
|
|
|
|
| 30 |
)
|
| 31 |
content = response.content
|
| 32 |
if 'text/html' in response.headers.get('content-type', ''):
|
| 33 |
+
print("it's html!")
|
| 34 |
soup = BeautifulSoup(response.text, 'html.parser')
|
| 35 |
for tag in soup.find_all(href=True):
|
| 36 |
tag['href'] = '/proxy?url=' + tag['href']
|