hurl/integration/tests/expect.py
Fabrice Reix af63efa578 Add request Expect Header explicitly
Fix: http version is the from the last status line
2020-10-21 09:25:22 +02:00

12 lines
238 B
Python

from tests 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 ''