elixir-plug / plug

Compose web applications with functions
https://hex.pm/packages/plug
Other
2.84k stars 582 forks source link

Fix example for Plug.Parsers.MULTIPART dynamic configuration #1108

Closed rbino closed 2 years ago

rbino commented 2 years ago

The correct key for the body length limit is :length, and the keyword list was also doubly wrapped

Side-note: I kept the original ++ to concatenate the two keyword list, is there a reason to use that instead of doing [length: length | opts]?

josevalim commented 2 years ago

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart: