mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-18 16:11:34 +03:00
11 lines
291 B
Python
11 lines
291 B
Python
|
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 ""
|