Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,7 +57,7 @@ def corsproxy():
|
|
| 57 |
return "http または https のURLのみ使用できます", 400
|
| 58 |
|
| 59 |
try:
|
| 60 |
-
resp = requests.get(url, headers=request.headers, timeout=
|
| 61 |
|
| 62 |
# 元のレスポンスヘッダを継承
|
| 63 |
response = Response(resp.content, resp.status_code)
|
|
@@ -92,7 +92,7 @@ def corsproxy_post():
|
|
| 92 |
url,
|
| 93 |
data=request.data,
|
| 94 |
headers=request.headers,
|
| 95 |
-
timeout=
|
| 96 |
)
|
| 97 |
|
| 98 |
headers = {
|
|
|
|
| 57 |
return "http または https のURLのみ使用できます", 400
|
| 58 |
|
| 59 |
try:
|
| 60 |
+
resp = requests.get(url, headers=request.headers, timeout=60)
|
| 61 |
|
| 62 |
# 元のレスポンスヘッダを継承
|
| 63 |
response = Response(resp.content, resp.status_code)
|
|
|
|
| 92 |
url,
|
| 93 |
data=request.data,
|
| 94 |
headers=request.headers,
|
| 95 |
+
timeout=60
|
| 96 |
)
|
| 97 |
|
| 98 |
headers = {
|