mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-27 16:26:40 +03:00
af63efa578
Fix: http version is the from the last status line
12 lines
238 B
Python
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 ''
|
|
|
|
|