Browse Source

solve flake8 error

moritan 9 years ago
parent
commit
38b733f92d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      searx/rest-server.py

+ 1
- 1
searx/rest-server.py View File

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__':