Pārlūkot izejas kodu

Remove /debug.

pull/24/head
Ben Kurtovic pirms 10 gadiem
vecāks
revīzija
5552fb8c78
2 mainītis faili ar 0 papildinājumiem un 15 dzēšanām
  1. +0
    -5
      app.fcgi
  2. +0
    -10
      templates/debug.mako

+ 0
- 5
app.fcgi Parādīt failu

@@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt