Skip to content

v1.0.2

Compare
Choose a tag to compare
@otsch otsch released this 12 Apr 20:23
· 7 commits to main since this release

Fixed

  • Duplicate keys without array notation (like foo=bar&foo=baz) are now also interpreted as array (like foo[]=bar&foo[]=baz). This is considered a bugfix because:
    • Previously foo=bar&foo=baz became foo=baz, which is most likely unwanted behavior.
    • Of course, such query strings should preferably be written using the array notation ([]), but if such a query is written without the brackets, the intention is either that it should be an array, or it's a mistake. If it is a mistake, the probability to notice it is higher, when the result contains all values instead of only the last one.
    • As this library is also part of the crwlr crawling library and there are servers intentionally using the syntax without brackets (e.g. google https://fonts.googleapis.com/css2?family=Baloo&family=Roboto) it's better to interpret it as an array.