Skip to content

Commit

Permalink
fix: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jhowliu committed Nov 2, 2023
1 parent eb16edd commit 1af1ef1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtime/marshaler_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
// MIMEWildcard is the fallback MIME type used for requests which do not match
// a registered MIME type.
const (
MIMEWildcard = "*"
FormURLEncoded = "application/x-www-form-urlencoded"
MIMEWildcard = "*"
MIMEFormURLEncoded = "application/x-www-form-urlencoded"
)

var (
Expand Down Expand Up @@ -98,8 +98,8 @@ func (m marshalerRegistry) add(mime string, marshaler Marshaler) error {
func makeMarshalerMIMERegistry() marshalerRegistry {
return marshalerRegistry{
mimeMap: map[string]Marshaler{
MIMEWildcard: defaultMarshaler,
FormURLEncoded: defaultFormMarshaler,
MIMEWildcard: defaultMarshaler,
MIMEFormURLEncoded: defaultFormMarshaler,
},
}
}
Expand Down

0 comments on commit 1af1ef1

Please sign in to comment.