Skip to content

Commit 0620c7e

Browse files
committed
refactor(mimetype/toml): 删除了 toml 作为 mimetype 的相关代码
toml 对顶层代码限制过多,并不适合作为 mimetype 使用。
1 parent 7dc5547 commit 0620c7e

File tree

5 files changed

+3
-58
lines changed

5 files changed

+3
-58
lines changed

mimetype/toml/toml.go

Lines changed: 0 additions & 28 deletions
This file was deleted.

mimetype/toml/toml_test.go

Lines changed: 0 additions & 24 deletions
This file was deleted.

mimetype/yaml/yaml.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 caixw
1+
// SPDX-FileCopyrightText: 2024-2025 caixw
22
//
33
// SPDX-License-Identifier: MIT
44

@@ -8,9 +8,8 @@ package yaml
88
import (
99
"io"
1010

11-
"gopkg.in/yaml.v3"
12-
1311
"github.com/issue9/mux/v9/header"
12+
"gopkg.in/yaml.v3"
1413

1514
"github.com/issue9/web"
1615
)

server/config/register.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import (
3434
"github.com/issue9/web/mimetype/html"
3535
"github.com/issue9/web/mimetype/json"
3636
"github.com/issue9/web/mimetype/nop"
37-
"github.com/issue9/web/mimetype/toml"
3837
"github.com/issue9/web/mimetype/xml"
3938
"github.com/issue9/web/mimetype/yaml"
4039
"github.com/issue9/web/server"
@@ -202,7 +201,6 @@ func init() {
202201
RegisterMimetype(yaml.Marshal, yaml.Unmarshal, "yaml")
203202
RegisterMimetype(cbor.Marshal, cbor.Unmarshal, "cbor")
204203
RegisterMimetype(xml.Marshal, xml.Unmarshal, "xml")
205-
RegisterMimetype(toml.Marshal, toml.Unmarshal, "toml")
206204
RegisterMimetype(html.Marshal, html.Unmarshal, "html")
207205
RegisterMimetype(form.Marshal, form.Unmarshal, "form")
208206
RegisterMimetype(gob.Marshal, gob.Unmarshal, "gob")

web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
)
2626

2727
// Version 当前框架的版本
28-
const Version = "0.102.10"
28+
const Version = "0.102.11"
2929

3030
type (
3131
Logger = logs.Logger

0 commit comments

Comments
 (0)