Skip to content
Myr

fix: application/x-www-form-urlencoded decoding (#1189)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

The current logic for decoding application/x-www-form-urlencoded is overly restrictive and misses `Content-Type` headers with a character encoding set, i.e., application/x-www-form-urlencoded; charset=UTF-8. This fix harmonizes the logic for handling multipart/form-data and application/x-www-form-urlencoded in the `parseBody` method of request objects.

authored by Kelly Littlepage · committed by GitHub · parent 94812fc · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:deno_dist/utils/body.ts+1 added-1 removed
modified:src/utils/body.ts+1 added-1 removed