mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-21 01:51:57 +03:00
19 lines
382 B
Python
19 lines
382 B
Python
|
from app import app
|
||
|
from flask import Response
|
||
|
|
||
|
|
||
|
@app.route("/gb2312")
|
||
|
def gb2312():
|
||
|
headers = {"Content-Type": "text/html"}
|
||
|
data = """<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
|
||
|
</head>
|
||
|
<body>你好世界</body>
|
||
|
</html>
|
||
|
""".encode(
|
||
|
"gb2312"
|
||
|
)
|
||
|
return Response(data, headers=headers)
|