mirror of https://github.com/searxng/searxng.git
Compare commits
2 Commits
07fff4e195
...
ac631cc1a9
Author | SHA1 | Date |
---|---|---|
Markus Heiser | ac631cc1a9 | |
Markus Heiser | e0a3dee3bf |
|
@ -17,9 +17,6 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/searxng.min.css') }}" type="text/css" media="screen" />
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/searxng.min.css') }}" type="text/css" media="screen" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if get_setting('server.limiter') %}
|
|
||||||
<link rel="stylesheet" href="{{ url_for('client_token', token=link_token) }}" type="text/css" />
|
|
||||||
{% endif %}
|
|
||||||
{% block styles %}{% endblock %}
|
{% block styles %}{% endblock %}
|
||||||
<!--[if gte IE 9]>-->
|
<!--[if gte IE 9]>-->
|
||||||
<script src="{{ url_for('static', filename='js/searxng.head.min.js') }}" client_settings="{{ client_settings }}"></script>
|
<script src="{{ url_for('static', filename='js/searxng.head.min.js') }}" client_settings="{{ client_settings }}"></script>
|
||||||
|
@ -82,5 +79,8 @@
|
||||||
<!--[if gte IE 9]>-->
|
<!--[if gte IE 9]>-->
|
||||||
<script src="{{ url_for('static', filename='js/searxng.min.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/searxng.min.js') }}"></script>
|
||||||
<!--<![endif]-->
|
<!--<![endif]-->
|
||||||
|
{%- if get_setting('server.limiter') -%}
|
||||||
|
<img class='invisible' src="{{ url_for('client_token', token=link_token) }}">
|
||||||
|
{%- endif -%}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -613,10 +613,10 @@ def health():
|
||||||
return Response('OK', mimetype='text/plain')
|
return Response('OK', mimetype='text/plain')
|
||||||
|
|
||||||
|
|
||||||
@app.route('/client<token>.css', methods=['GET', 'POST'])
|
@app.route('/client<token>.svg', methods=['GET', 'POST'])
|
||||||
def client_token(token=None):
|
def client_token(token=None):
|
||||||
link_token.ping(request, token)
|
link_token.ping(request, token)
|
||||||
return Response('', mimetype='text/css')
|
return Response('<svg></svg>', mimetype='image/svg+xml')
|
||||||
|
|
||||||
|
|
||||||
@app.route('/search', methods=['GET', 'POST'])
|
@app.route('/search', methods=['GET', 'POST'])
|
||||||
|
|
Loading…
Reference in New Issue