* Represent emtpy query parameters as empty strings instead of "true" * Encode and decode query params Fixes #126 * Pass invalid query parameters through instead of ignoring them * Decode the plus sign `+` as a space ` ` in query string * Decode percent encoding in path segments * Update History.md
12 lines
196 B
JavaScript
12 lines
196 B
JavaScript
"use strict";
|
|
|
|
exports.encodeURIComponent = encodeURIComponent
|
|
|
|
exports.decodeURIComponentImpl = function(s) {
|
|
try {
|
|
return decodeURIComponent(s);
|
|
} catch(error) {
|
|
return null;
|
|
}
|
|
};
|