izuemon commited on
Commit
a196b17
·
verified ·
1 Parent(s): cf85907

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=10)
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=10
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 = {