Vapor: 4.69.1 Release

Release date:
January 18, 2023
Previous version:
4.69.0 (released January 18, 2023)
Magnitude:
0 Diff Delta
Contributors:
1 total committer
Data confidence:
Commits:

Top Contributors in 4.69.1

bobvoorneveld

Directory Browser for 4.69.1

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

This patch was authored by @bobvoorneveld and released by @Joannis.

When a HTML form uses a checkbox to check something as a Bool, it sends the 'on' value if checked. The URLEncodedForms decoder should be able to handle that.

<form method="post">
 <input type="checkbox" name="isActive" checked />
 </form>

struct FormData: Decodable {
    let isActive: Bool
}

let formData = try req.content.decode(FormData.self)

fixes #2444