Allow URLEncodedForms to decode 'on' value als Bool => true
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