hurl/integration/tests_ok/request_content_length.py

11 lines
291 B
Python
Raw Normal View History

from app import app
from flask import make_response, request
@app.route("/request-content-length", methods=["POST"])
def request_content_length():
assert int(request.headers["Content-Length"]) == 1
assert len(request.data) == 1
assert request.data[0] == ord("H")
return ""