Surplus_Up (2DU) 7 лет назад
Родитель
Сommit
cab242bb60
3 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      route/change_password.py
  2. 1 1
      route/login.py
  3. 1 1
      route/register.py

+ 1 - 1
route/change_password.py

@@ -86,7 +86,7 @@ def change_password_2(conn, server_init):
             
             
             oauth_content += '</ul>'
             oauth_content += '</ul>'
 
 
-            forwarded_protocol = request.headers.get('X-Forwarded-Proto', None)
+            forwarded_protocol = flask.request.headers.get('X-Forwarded-Proto', None)
             if forwarded_protocol == 'http':
             if forwarded_protocol == 'http':
                 http_warring = '<hr class=\"main_hr\"><span>' + load_lang('http_warring') + '</span>'
                 http_warring = '<hr class=\"main_hr\"><span>' + load_lang('http_warring') + '</span>'
             else:
             else:

+ 1 - 1
route/login.py

@@ -77,7 +77,7 @@ def login_2(conn):
         if oauth_check == 0:
         if oauth_check == 0:
             oauth_content = ''
             oauth_content = ''
 
 
-        forwarded_protocol = request.headers.get('X-Forwarded-Proto', None)
+        forwarded_protocol = flask.request.headers.get('X-Forwarded-Proto', None)
         if forwarded_protocol == 'http':
         if forwarded_protocol == 'http':
             http_warring = '<hr class=\"main_hr\"><span>' + load_lang('http_warring') + '</span>'
             http_warring = '<hr class=\"main_hr\"><span>' + load_lang('http_warring') + '</span>'
         else:
         else:

+ 1 - 1
route/register.py

@@ -88,7 +88,7 @@ def register_2(conn):
         if data and data[0][0] != '':
         if data and data[0][0] != '':
             contract = data[0][0] + '<hr class=\"main_hr\">'
             contract = data[0][0] + '<hr class=\"main_hr\">'
         
         
-        forwarded_protocol = request.headers.get('X-Forwarded-Proto', None)
+        forwarded_protocol = flask.request.headers.get('X-Forwarded-Proto', None)
         if forwarded_protocol == 'http':
         if forwarded_protocol == 'http':
             http_warring = '<hr class=\"main_hr\"><span>' + load_lang('http_warring') + '</span>'
             http_warring = '<hr class=\"main_hr\"><span>' + load_lang('http_warring') + '</span>'
         else:
         else: