Skip to content

Commit

Permalink
fix: create decoder only once
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Aug 6, 2020
1 parent dd32c23 commit 34dc43b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfservice/strategy/password/registration.go
Expand Up @@ -103,7 +103,7 @@ func (s *Strategy) handleRegistration(w http.ResponseWriter, r *http.Request, _
return
}

if err := decoderx.NewHTTP().Decode(r, &p,
if err := s.hd.Decode(r, &p,
decoderx.HTTPFormDecoder(),
option,
decoderx.HTTPDecoderSetIgnoreParseErrorsStrategy(decoderx.ParseErrorIgnore),
Expand Down

0 comments on commit 34dc43b

Please sign in to comment.