Fixed for WSGI
This commit is contained in:
1 parent
6912c95de3
commit
3d1a2ff9a1
3 files changed
+10
-5
No files matched your search
@@ -56,10 +56,10 @@ doesDirExist()
|
|||||||
|
|
||||||
# https://paste.benjamyn.love/CBynvvjwDK
|
# https://paste.benjamyn.love/CBynvvjwDK
|
||||||
|
|
||||||
app = Flask(__name__)
|
application = Flask(__name__)
|
||||||
app.config['DEBUG'] = False
|
application.config['DEBUG'] = False
|
||||||
|
|
||||||
@app.route('/', methods=['POST', 'GET'])
|
@application.route('/', methods=['POST', 'GET'])
|
||||||
def index():
|
def index():
|
||||||
printRealIP()
|
printRealIP()
|
||||||
if request.method == "GET":
|
if request.method == "GET":
|
||||||
@@ -80,7 +80,7 @@ def index():
|
|||||||
return method + hostedURL + name
|
return method + hostedURL + name
|
||||||
|
|
||||||
|
|
||||||
@app.route('/<path:path>')
|
@application.route('/<path:path>')
|
||||||
def getPaste(path):
|
def getPaste(path):
|
||||||
printRealIP()
|
printRealIP()
|
||||||
raw = False
|
raw = False
|
||||||
@@ -104,4 +104,4 @@ def getPaste(path):
|
|||||||
return render_template("read.html", data="No paste found")
|
return render_template("read.html", data="No paste found")
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(host='127.0.0.1')
|
application.run(host='127.0.0.1')
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<pre>{{data|escape}}</pre>
|
||||||
Reference in new issue
Block a user