This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Flask server that *internal*-redirects to another Nginx endpoint without generating additional HTTP traffic. | |
Also passes an internaly-only 'flash message' via headers. | |
''' | |
from flask import Flask, request, make_response | |
application = Flask(__name__) | |
@application.route('/from/flask') |