mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-23 09:44:22 +03:00
15 lines
292 B
Python
15 lines
292 B
Python
from app import app
|
|
from flask import request
|
|
|
|
|
|
@app.route("/user-agent/a")
|
|
def useragent_a():
|
|
assert "Mozilla/5.0 A" == request.headers["User-Agent"]
|
|
return ""
|
|
|
|
|
|
@app.route("/user-agent/b")
|
|
def useragent_b():
|
|
assert "Mozilla/5.0 B" == request.headers["User-Agent"]
|
|
return ""
|