Переглянути джерело

Remove /debug.

pull/24/head
Ben Kurtovic 10 роки тому
джерело
коміт
5552fb8c78
2 змінених файлів з 0 додано та 15 видалено
  1. +0
    -5
      app.fcgi
  2. +0
    -10
      templates/debug.mako

+ 0
- 5
app.fcgi Переглянути файл

@@ -69,10 +69,5 @@ def settings():
"default_lang": default.lang, "default_project": default.project}
return render_template("settings.mako", **kwargs)

@app.route("/debug")
@catch_errors
def debug():
return render_template("debug.mako")

if __name__ == '__main__':
WSGIServer(app).run()

+ 0
- 10
templates/debug.mako Переглянути файл

@@ -1,10 +0,0 @@
<%include file="/support/header.mako" args="title='Debug - Earwig\'s Copyvio Detector'"/>
<%! from flask import request %>\
<ul>
% for key, value in request.environ.items():
% if key not in ["wsgi.input", "wsgi.errors", "PATH"]:
<li><b>${key}</b>: ${value | h}</li>
% endif
% endfor
</ul>
<%include file="/support/footer.mako"/>

Завантаження…
Відмінити
Зберегти