修改路由匹配正则表达式,添加更多测试用例

This commit is contained in:
yangshangbo
2025-04-15 14:08:42 +08:00
parent 8b18de9693
commit d1da1e9bc1
4 changed files with 18 additions and 8 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ pub fn Response.text(body string) http.Response {
return http.Response{
header: http.new_header(http.HeaderConfig{
key: http.CommonHeader.content_type
value: 'plain/text'
value: 'text/plain'
})
status_code: 200
body: body