Ver código fonte

solve flake8 error

moritan 9 anos atrás
pai
commit
38b733f92d
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      searx/rest-server.py

+ 1
- 1
searx/rest-server.py Ver arquivo

145
 
145
 
146
     return locale
146
     return locale
147
 
147
 
148
+
148
 @app.before_request
149
 @app.before_request
149
 def option_autoreply():
150
 def option_autoreply():
150
     """ Always reply 200 on OPTIONS request """
151
     """ Always reply 200 on OPTIONS request """
182
     if request.method != 'OPTIONS' and 'Origin' in request.headers:
183
     if request.method != 'OPTIONS' and 'Origin' in request.headers:
183
         h['Access-Control-Allow-Origin'] = request.headers['Origin']
184
         h['Access-Control-Allow-Origin'] = request.headers['Origin']
184
 
185
 
185
-
186
     return resp
186
     return resp
187
 
187
 
188
 if __name__ == '__main__':
188
 if __name__ == '__main__':