hurl/integration/tests_ok/expect.py

11 lines
235 B
Python
Raw Normal View History

from app import app
from flask import request
@app.route("/expect", methods=["POST"])
def expect():
assert request.headers["Expect"] == "100-continue"
s = request.data.decode("utf-8")
assert s == """data"""
return ""