Skip to content

Commit cd7e68d

Browse files
committed
docs: 修正示例代码错误
1 parent b8da38c commit cd7e68d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ import (
5252

5353
srv := server.New("app", "1.0.0", &server.Options{
5454
Codec: web.NewCodec().
55-
AddMimetype(xml.Mimetype, json.Marshal, json.Unmarshal, xml.ProblemMimetype).
56-
AddMimetype(xml.Mimetype, xml.Marshal, xml.Unmarshal, xml.ProblemMimetype)
55+
AddMimetype(xml.Mimetype, json.Marshal, json.Unmarshal, xml.ProblemMimetype, true, true).
56+
AddMimetype(xml.Mimetype, xml.Marshal, xml.Unmarshal, xml.ProblemMimetype, true, true)
5757
}
5858
})
5959

0 commit comments

Comments
 (0)