Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 765
urlencoded: Support iso-8859-1, utf8 sentinel, and numeric entities#326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
9c3860d6f5406ccf7807b22eb75a5c25f5ddab286ae3fca5d5b39b865daeca80fb82de2ef109fd82fe9ea0b69dd97e574d080ba729e055e29644b1c8853a30ca468d4b9645c4097fc97f4a3bca9a4ebaccbf4cec97d20449d4745544a6aa9File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -271,6 +271,23 @@ The `verify` option, if supplied, is called as `verify(req, res, buf, encoding)` | ||
| where `buf` is a `Buffer` of the raw request body and `encoding` is the | ||
| encoding of the request. The parsing can be aborted by throwing an error. | ||
| ##### defaultCharset | ||
| The default charset to parse as, if not specified in content-type. Must be | ||
| either `utf-8` or `iso-8859-1`. Defaults to `utf-8`. | ||
| ##### charsetSentinel | ||
| Whether to let the value of the `utf8` parameter take precedence as the charset | ||
| selector. It requires the form to contain a parameter named `utf8` with a value | ||
| of `✓`. Defaults to `false`. | ||
| ##### interpretNumericEntities | ||
| Whether to decode numeric entities such as `☺` when parsing an iso-8859-1 | ||
| form. Defaults to `false`. | ||
Comment on lines
+285
to
+288
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and this goes along with the other defaultCharset value | ||
| ## Errors | ||
| The middlewares provided by this module create errors using the | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this goes along with
defaultCharset