@@ -29,6 +29,7 @@ import hashlib
2929
3030from datetime import datetime, timedelta
3131from urllib import urlencode
32+from werkzeug.contrib.fixers import ProxyFix
3233from flask import (
3334 Flask, request, render_template, url_for, Response, make_response,
3435 redirect, send_from_directory
@@ -652,6 +653,8 @@ def run():
652653
653654application = app
654655
656+app.wsgi_app = ProxyFix(application.wsgi_app)
657+
655658
656659if __name__ == "__main__":
657660 run()