Преглед изворни кода

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"/>

Loading…
Откажи
Сачувај