Commit 75647423 authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

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

parent 3d0ca14b
......@@ -148,7 +148,9 @@ func getOptions(r *http.Request) map[string]interface{} {
// 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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment