useid / handlersjs

MIT License
3 stars 3 forks source link

More flexible query parameters #24

Closed woutermont closed 3 years ago

woutermont commented 3 years ago

Currently, the query parameters of a HttpHandlerRequest take a single string as value. Since a url allows multiple values to be passed for the same key, we hould probably allow this (currently only the last value is stored). Moreover, parameters without a value are possible, but are currently stored as null.

We should accomodate these cases, either by adapting the type of tthe values in query, or by simply pasing a URLSearchparams object instead.

When released, the type change will be incompatible with dgt-platform-api, dgt-id-broker and semcom, so these should be updated.

┆Issue is synchronized with this Wrike Task by Unito

sync-by-unito[bot] commented 3 years ago

➤ Wouter Termont commented:

Fixed by using DOM URL objects