mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-23 02:52:34 +03:00
17 lines
350 B
Python
17 lines
350 B
Python
from app import app
|
|
from flask import request
|
|
|
|
|
|
@app.route("/http_version/10")
|
|
def http_10():
|
|
version = request.environ["SERVER_PROTOCOL"]
|
|
assert version == "HTTP/1.0"
|
|
return "HTTP/1.0"
|
|
|
|
|
|
@app.route("/http_version/11")
|
|
def http_11():
|
|
version = request.environ["SERVER_PROTOCOL"]
|
|
assert version == "HTTP/1.1"
|
|
return "HTTP/1.1"
|