8000 Multi-valued query parameter only picks up the last value · Issue #29 · domkm/silk · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Multi-valued query parameter only picks up the last value #29
Open
@bendlas

Description

@bendlas
> (domkm.silk/decode-query "foo=Greg&bar=Linda&foo=John")
{"foo" "John", "bar" "Linda"}

Such query-strings are allowed and widely supported [1] [2]. Even ring has some (admittedly dodgy) support for this, where it would return a vector, when there are multiple values to a query key.

[1] https://developer.mozilla.org/en/docs/Web/API/URLSearchParams/getAll
[2] https://google.github.io/closure-library/api/goog.Uri.QueryData.html#getValues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0