form icon indicating copy to clipboard operation
form copied to clipboard

What about supporting case-insensitive key?

Open Loyalsoldier opened this issue 4 years ago • 0 comments

Package version eg. v9, v10:

v4

Issue, Question or Enhancement:

I want these two requests work at the same time:

curl host/api?queryTime=timestamp
curl host/api?querytime=timestamp

In other words, what about supporting case-insensitive key?

Code sample, to showcase or reproduce:

type Request struct {
  queryTime string `form:"queryTime"`
}

var req Request
decode.Decode(&req, r.Form)

Loyalsoldier avatar Sep 30 '21 16:09 Loyalsoldier