提交 75647423 作者: Matt Bell 提交者: Juan Batiz-Benet

server/http: Fixed error when using long encoding option name

上级 3d0ca14b
...@@ -148,7 +148,9 @@ func getOptions(r *http.Request) map[string]interface{} { ...@@ -148,7 +148,9 @@ func getOptions(r *http.Request) map[string]interface{} {
// TODO: get more options from request body (formdata, json, etc) // TODO: get more options from request body (formdata, json, etc)
if _, exists := opts[cmds.EncShort]; !exists { _, short := opts[cmds.EncShort]
_, long := opts[cmds.EncLong]
if !short && !long {
opts[cmds.EncShort] = cmds.JSON opts[cmds.EncShort] = cmds.JSON
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论