hurl/integration/tests_ok/proxy.py

10 lines
175 B
Python
Raw Normal View History

from app import app
2020-10-29 22:08:15 +03:00
from flask import request
2020-10-29 22:08:15 +03:00
@app.route("/proxy")
def proxy():
2023-04-05 12:07:50 +03:00
print(request.headers)
assert request.headers["From-Proxy"] == "Hello"
return ""